We can use Integer class to convert string to integer in Java. For int, use the parseInt() method, else use valueOf() method to create Integer from String.
確定! 回上一頁