API使用

API 理解:應用編程接口接口:兩邊可以產生一個連接的接口 1、Scanner 1_1、nextInt();---獲取int整數 1_2、nextLine();---獲取字符串 1_3、Scanner字符串與int類型問題解決 例如: Scanner scanner = new Scanner(System.in); System.out.println("請輸入一個整數"); int u = s
相關文章
相關標籤/搜索