day04 運算符

今天重點學習了java中的幾種運算符和用途 鍵盤錄入: 1.導包 2.創建對象 Scanner 對象名 = new Scanner(System.in); 3.獲取鍵盤錄入的信息 對象名.nextInt();// 獲取鍵盤錄入的整數 ​ .nextLine(); ​ .nextLong(); ​ .nextFloat();// 小數 ​ .nextDouble(); .next() … 注意:如果
相關文章
相關標籤/搜索