int foo = Integer.parseInt("1234");
具体可以参考:http://stackoverflow.com/questions/5585779/how-to-convert-string-to-int-in-java
int foo = Integer.parseInt("1234");
具体可以参考:http://stackoverflow.com/questions/5585779/how-to-convert-string-to-int-in-java
转载于:https://my.oschina.net/letiantian/blog/269032