結果 : write a program to demonstrate the nested if statement in java