ITeye博客

把Strings转换成int和把int转换成String

achieve2015 · 2016-01-11 14:15 · 编程语言 · Markdown

String a = String.valueOf(2); //integer to numeric string
int i = Integer.parseInt(a); //numeric string to an int String a = String.valueOf(2);
//integer to numeric string int i = Integer.parseInt(a); //numeric string to an int

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。