看板
[ java ]
討論串[問題] 猜拳 按Q跳出
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
char input;\\字元變數. int change=0,user=0;\\轉換型別變數,使用者出拳. Scanner scan = new Scanner(System.in);. do. {. int computer=(int)(Math.random()*3+1);\\電腦亂數1~3.
(還有1176個字)
內容預覽:
我自己解決了 改成這樣就行了. //}else System.out.println("Errors!!");不要了. // personPlay = " "; 也不要了. else. if(!personPlay.equalsIgnoreCase("Q")). System.out.println
(還有170個字)
內容預覽:
請教大家. 剪刀 石頭 布 按 R, P or S 開始 然後 按Q(大小寫略過)跳出. 但是按了Q or q 都跳不出 是不是do-while的條件錯了啊~~~. do. {. System.out.print("Enter your play R, P, or S ( Q to quit ):
(還有1291個字)
首頁
上一頁
1
下一頁
尾頁