मराठी

The Scanner class method used to accept words with spаce:

Advertisements
Advertisements

प्रश्न

The Scanner class method used to accept words with spаce:

पर्याय

  • next()

  • nextLine()

  • Next()

  • nextString()

MCQ
Advertisements

उत्तर

nextLine()

Explanation:

The nextLine() method reads the entire input string, including spaces, until it hits the end of the line (when Enter is pressed). In contrast, the standard next() method stops reading at the very first space it encounters.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Library Classes - Exercises [पृष्ठ १३४]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 5 Library Classes
Exercises | Q 1. (xi) | पृष्ठ १३४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×