09 2015 档案

摘要:1.Integer a=new Integer(6);//???? System.out.println(a);//输出的值怎么还是6???(1)每个对象中都有一个(继承或者重新)toString()方法,这个方法一般用于输出一些和对象相关的信息。Integer的toString()方法如下: ... 阅读全文
posted @ 2015-09-11 00:04 老司机飙车 阅读(192) 评论(0) 推荐(0)
摘要:1.String.valueOf(boolean b) : 将 boolean 变量 b 转换成字符串 ??这里的字符串是String类的对象????ctrl+左键单击valueOf()查看源码 1 /** 2 * Returns the string representation of... 阅读全文
posted @ 2015-09-10 21:54 老司机飙车 阅读(242) 评论(0) 推荐(0)