1 package pm; public class SwitchTest { //>=90 A // 80~89 B // 70~79 C // 60~69 D // <60 E public static void main(String[] args) { int s=87; switch(s/10){ case 10 :System.out.println("A");break; case 9 :System.out.println("A");break; case 8 :System.out.println("B");break; case 7 :System.out.println("c");break; case 6 :System.out.println("D");break; default :System.out.println("E");break; } } } package pm; public class SwitchTest{ public static void main(String[] args){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+(i*j)+"\t"); } System.out.println(); } } } package pm; import java.util.Scanner; public class SwitchTest { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while (true) { System.out.println; String s = sc.next().trim(); if ("c".equalsIgnoreCase(s)) { System.out.println; double db = sc.nextDouble(); double db2 = (db * 9 / 5) + 32; System.out.println(" + db2 + "F"); } else if ("f".equalsIgnoreCase(s)) { System.out.println; double db = sc.nextDouble(); double db2 = (db - 32) * 5 / 9; System.out.println(+ Math.round(db2) + "C"); }else if("exit".equalsIgnoreCase(s)){ break; } } } } package pm; import java.util.Scanner; public class SwitchTest{ public static void main(String[] args) { 2 Scanner sc=new Scanner(System.in); boolean flag=true; while (flag) { System.out.println; String str = sc.nextLine().trim(); if (str.endsWith("c") || str.endsWith("C")) { String st = str.substring(0, str.length() - 1); double db = Double.parseDouble(st);//[0,2) //2 double db=Double.valueOf(st).doubleValue(); double db2 = (db * 9 / 5) + 32; System.out.println; } else if (str.endsWith("f") || str.endsWith("F")) { String st = str.substring(0, str.length() - 1); double db = Double.parseDouble(st);//[0,2) /...