問答題

【計算題】使用下列方法頭編寫一個方法, 統計字母在字符串中出現的個數。public static int countLetters(String s)編寫 main 方法調用 countLetters(“Java in 2008”)并顯示結果。

答案:

微信掃碼免費搜題