English

Which of the following is a method of Java Scanner class? - Computer Applications

Advertisements
Advertisements

Question

Which of the following is a method of Java Scanner class? 

Options

  • nextline()

  • nextLine()

  • Nextline()

  • NextLine()

MCQ

Solution

nextLine()

Explanation:

The method nextLine() (with an uppercase 'L') reads a whole line of data from the user.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.06: Input in Java - EXERCISES [Page 65]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.06 Input in Java
EXERCISES | Q I. 5. | Page 65
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×