import java.util.*;public class ooo{? ?public static void main(String[] args){? Scanner fee=new Scanner(System.in); System.out.println("請(qǐng)?jiān)?,2,3這三個(gè)數(shù)字任選一個(gè)"); System.out.println("請(qǐng)輸入數(shù)字:"); int a =fee.nextInt(); swith(a);{ case 1: System.out.println("你出的是石頭");? break; case 2: System.out.println("你出的是剪刀"); break; case 3: System.out.println("你出的是布"); break; default: System.out.println("請(qǐng)輸入正確數(shù)字"); } ? }}/*編譯時(shí)出現(xiàn)ooo.java:10:?單個(gè)?case:???case?1:
???????????????????????????????????????^
??????????????????????1錯(cuò)誤*/
添加回答
舉報(bào)
0/150
提交
取消