0

How can I make it possible for me code to allow user input

Add a code block to allow user input https://code.sololearn.com/cE33W6XcF90Y/?ref=app

22nd Apr 2019, 11:05 AM
Charles Nyangena
Charles Nyangena - avatar
2 Answers
+ 5
https://www.sololearn.com/learn/Java/2220/?ref=app
22nd Apr 2019, 11:48 AM
Denise Roßberg
Denise Roßberg - avatar
+ 5
for user input you need a Scanner: import java.util.Scanner; Scanner scan = new Scanner(System.in); String input = scan.nextLine();
22nd Apr 2019, 11:47 AM
Denise Roßberg
Denise Roßberg - avatar