String转为int colddemon · 2012-07-26 16:12 · java · 编程语言 · Markdown String str="2"; int a=Interger.parseInt(str); Long.parseLong(str);