方法一:
int i = 123456; String s = String.valueOf(i);
方法二:
String s = Integer.toString(i);//就是返回表示指定整数i的string对象
方法三:
String s = "" +i;字符串转化为整形:
方法一:
int n = Integer.parseInt(sc);
方法二:
int n = Integer.valueOf(sc)字符串转化为字符数组:
String s = "abcdefg"; char[] c = s.toCharArray();



