結果 : stack program in java using switch case