Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 289 Bytes

File metadata and controls

20 lines (18 loc) · 289 Bytes

ints

You can also use ints with switches.

~void main() {
int year = 2024;
switch (year) {
    case 2023 -> {
        IO.println("The Chiefs");
    }
    case 2024 -> {
        IO.println("The Chiefs");
    }
    default -> {
        IO.println("I don't know");
    }
}
~}