📅  最后修改于: 2022-03-11 14:52:46.012000             🧑  作者: Mango
switch (event) {
case PLAY -> {
System.out.println("PLAY event!");
counter++;
}
case STOP -> System.out.println("STOP event");
default -> System.out.println("Unknown event");
};