Scanner class in Java supports nextInt(), nextLong(), nextDouble() etc. But there is no nextChar() (See this for examples). To read a char, we use next().
確定! 回上一頁