Time remaining:
Help with Java program

Computer Science
Tutor: None Selected Time limit: 0 Hours

how do I use the scanner function 

Dec 8th, 2014

first you have to import the util package.

import java.util.Scanner;

then in main function

Scanner scan = new Scanner(System.in);

String s = scan.nextLine();

this will scan the string from screen.

Thank you best my answer.


Dec 8th, 2014

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Dec 8th, 2014
...
Dec 8th, 2014
Dec 8th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer