1 switch (num) {
2 case 5:
3 case 2:
4 case 3:
5 System.out.println("5,2,3");
6 break;
7 case 4:
8 case 6:
9 System.out.println("4,6");
10 break;
11 case 1:
12 System.out.println("1");
13 break;
14 default:
15 System.out.println("Inavlid number");
16 break;
17 }
1switch (measurement)
2{
3 case "oz":
4 {
5 qty = Math.round (qty * 28.3495);
6 qty= (int)qty;
7 measurement= "g";
8 System.out.print(qty);
9 }
10 break;
11 case "fl oz":
12 {
13 qty = Math.round (qty * 29.5735);
14 qty= (int)qty;
15 measurement= "ml";
16 System.out.print(qty);
17 }
18 break;
19 default:
20 {
21 qty =(int)qty;
22 System.out.print(qty);
23 }
24}//end switch case