nextInt(nextFloat nextByte) next nextLine
1.讀取方式上來講 大家都以回車符作為結束符号
除了nextLine以外其餘的方法都不讀取回車符
2.讀取的傳回結果來講 nextInt–>int nextFloat–float
next–String nextLine–>String
abc abc def g
Float.parseFloat(“123.34”);
nextInt(nextFloat nextByte) next nextLine
1.讀取方式上來講 大家都以回車符作為結束符号
除了nextLine以外其餘的方法都不讀取回車符
2.讀取的傳回結果來講 nextInt–>int nextFloat–float
next–String nextLine–>String
abc abc def g
Float.parseFloat(“123.34”);