舉個使用 BufferedReader 的例子,在 JDK 1.4 之前,標準 API 並沒有 Scanner 類別,若要在文字模式下取得使用者輸入的字串,會如下撰寫: BufferedReader reader = new ...
確定! 回上一頁