मराठी

Explain the following function: nextLine(); - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain the following function:

nextLine();

थोडक्यात उत्तर

उत्तर

The Scanner object's nextLine() method reads the complete input line of text. It accepts the string, including spaces.

Syntax:

Scanner ob = new Scanner(System.in); 
String s = ob.nextLine();
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.06: Input in Java - EXERCISES [पृष्ठ ६६]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.06 Input in Java
EXERCISES | Q III. 5. | पृष्ठ ६६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×