以字串轉整數為例,使用的方法如下: String xxx = "1234"; int x = Integer.parseInt(xxx); //使用Integer.parseInt 而字串轉其他型態如下:
確定! 回上一頁