結果 : ascending order in java using if else statement