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