結果 : how to access top of stack in java