摘要:
java不像C中拥有scanf这样功能强大的函数,大多是通过定义输入输出流对象。常用的类有BufferedReader,Scanner。实例程序:一,利用 Scanner 实现从键盘读入integer或float 型数据Java代码 1 import java.util.*; 2 public class test { 3 public static void main(String args[]) 4 { 5 Scanner in=new Scanner(System.in); //使用Scanner类... 阅读全文
摘要:
String a="100";int b=2;String c=a+b;then the answer is c=1002;+ make the two sides become String when there is at least one String exsit. 阅读全文
摘要:
Integer.parseInt() and Double.parse.double()例:Integer.parseInt("123") 得到常量123 阅读全文