j**a中将Int型转换为String型的好方法

时间:2014.11.18 发布人:QU00088556

j**a中将Int型转换为String型的好方法

已解决问题

谷歌QU00088556用户在2014.11.18提交了关于“非人学园j**a中将Int型转换为String型的好方法”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2024-11-01T19:30:19。把String型的数字转换为Int型,用于数学计算希望大家能够帮助她。

详细问题描述及疑问:把String型的数字转换为Int型,用于数学计算期待您的答案,你是我的宝贝,你是我的花,谢谢你对我的帮助!

希望以下的回答,能够帮助你。

第1个回答

用户名:typs1246  

publicclassTest1{
publicstaticvoidmain(String[]args){
//String转int
Stringa="123";
intb=Integer.parseInt(a);
System.out置明底生出眼额.println(b);
//打印结果123
//int转String
in问答tc=123;
Stringd=String.valueOf(c);
System.out.println(d);
//打印结果123
}
}

两种都压切英兰肉务乱帮你搞定了(//String转int,//int转String)给分吧,哈哈