Java String转换为int 收藏
String转换为int型 //convert str(String) to i(int) String str; int i = Integer.parseInt(str); int型转换为String
//conver i(int) to str(String) int i; String str = i.toString(); //convert i(int) to j(Integer) int i; Integer j = Integer.valueOf(i); //convert t(Integer) to n (int)
Integer t; 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/Player26/archive/2008/11/21/3346936.aspx |
|