Time remaining:
Help with Java program

label Computer Science
account_circle Unassigned
schedule 0 Hours
account_balance_wallet $5

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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Dec 8th, 2014
...
Dec 8th, 2014
Jun 24th, 2017
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