1

To accept a character using scanner class, the command should be

  • A

    nextchar()

  • B

    next().charAt(0)

  • C

    next()

  • D

    next.char()