String與Int的轉換

例1:spa String str = "123"; try {     int a = Integer.parseInt(str); } catch (NumberFormatException e) {     e.printStackTrace(); } 例2: orm String str = "123"; try {     int b = Integer.valueOf(str).in
相關文章
相關標籤/搜索