不同的Scanner方法對應到不同資料型態使用時要注意import java.util. ... nextDouble();//取讀下一個雙浮點數 System.out.println(d); } }} 型態沒互相對應就會出錯 再 ...
blog.xuite.net