The Scanner class can parse strings by breaking them into tokens. We can use the nextInt() method to get the only token of the input string as an int.
確定! 回上一頁