摘要:
int –> String int i=123; String s=""; 第一种方法:s=i+""; //会产生两个String对象 第二种方法:s=String.valueOf(i); //直接使用String类的静态方法,只产生一个对象 第三种方法:Integer.toString(i); String –> int s="123"; int i; 第一种方法:i=Integer.pars... 阅读全文
posted @ 2018-11-20 20:42
章三丰
阅读(4583)
评论(0)
推荐(0)

浙公网安备 33010602011771号