結果 : how to use a stack of characters in java