Computer Science, asked by adityakerketta77, 6 months ago

. Which of the following methods does not pertain to Scanner class?
(a) nextInt()
(b) next()
(c) nextLine()
(d) nextSentence()​

Answers

Answered by Aknsh909
2

The Answer is (d) next sentence()

Answered by sarahssynergy
0

The method does not pertain to Scanner class:

Explanation:

  • nextInt() Scanner class method is used to read integer value from the user.
  • next() and nextLine() both methods can be used to read string from the user.
  • nextSentence()​ is not used to scanner class.
  • So, (d) nextSentence()​ is the correct answer.
Similar questions