java switch multiple values

Java
  switch (num) {
            case 5:
            case 2:
            case 3:
                System.out.println("5,2,3");
                break;
            case 4:
            case 6:
                System.out.println("4,6");
                break;
            case 1:
                System.out.println("1");
                break;
            default:
                System.out.println("Inavlid number");
                break;
        }
Source

Also in Java: