The example below uses the weekday number to calculate the weekday name: Example. int day = 4; switch (day) { case 1: System.out.println("Monday"); break; ...
確定! 回上一頁