09 2015 档案
摘要:1.Integer a=new Integer(6);//???? System.out.println(a);//输出的值怎么还是6???(1)每个对象中都有一个(继承或者重新)toString()方法,这个方法一般用于输出一些和对象相关的信息。Integer的toString()方法如下: ...
阅读全文
摘要:1.String.valueOf(boolean b) : 将 boolean 变量 b 转换成字符串 ??这里的字符串是String类的对象????ctrl+左键单击valueOf()查看源码 1 /** 2 * Returns the string representation of...
阅读全文
浙公网安备 33010602011771号