Given a Scanner called inStream, what method would we use to get the next boolean value in the stream?

inStream.nextBoolean();
  • inStream.hasNextBoolean();
  • inStream.nextLine();
  • inStream.hasNextLine();

There are no hints for this question.