java整数和字符串相互转换

来源:互联网 发布:连凯软件 编辑:程序博客网 时间:2024/05/15 23:46
int n = Integer.parseInt("123");//将字符串转化成整形String s = String.valueOf(int a );//将整形转化为字符串