看板
[ java ]
討論串[蟲?] 幼稚園算數
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
public class Count {. public static void main(String[] args) {. Scanner scanner = new Scanner(System.in);. String input = scanner.nextLine();. System.
(還有103個字)
內容預覽:
獻醜一下...應該沒錯, 有錯不要鞭我. 用個boolean記錄吧. public static int CountWords(String input){. //省略checkvalid input, 和假設只用空白分字. boolean isNewWord=false;. int count=0
(還有144個字)
內容預覽:
改出來了 !. public class Count {. public static void main(String[] args) {. Scanner scanner = new Scanner(System.in);. int wordcount =0;. String input = s
(還有452個字)
內容預覽:
內容 :. 算一算每行有幾個字(word)。. Word的定義是連續的字元(letter: A~Z a~z)所組成的字。. 輸入說明 :. 一段文字(string). 輸出說明 :. 字數(int). 範例輸入 :. Hello everybody!!. This is school princip
(還有556個字)
首頁
上一頁
1
下一頁
尾頁