English

The Scanner class method used to accept words with space: - Computer Applications

Advertisements
Advertisements

Question

The Scanner class method used to accept words with space:

Options

  • next()

  • nextLine()

  • Next()

  • nextString()

MCQ

Solution

nextLine()

shaalaa.com
Introduction of Input in Java
  Is there an error in this question or solution?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×