Java中将字符串转换为整形数字

int foo = Integer.parseInt("1234");


具体可以参考:http://stackoverflow.com/questions/5585779/how-to-convert-string-to-int-in-java

你可能感兴趣的:(Java中将字符串转换为整形数字)