मराठी

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

Advertisements
Advertisements

प्रश्न

Explain the following function:

next();

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

उत्तर

When a line of text is entered into the Scanner object, the next() method will only get the first token. 

Syntax:

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×