Unity Stack Peek Function In Java