You can use the method: Integer.parseInt. String s = "12"; try { int i = Integer.parseInt(s); //do calculations here } catch ...
確定! 回上一頁