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
2 Answers
+ 5
https://www.sololearn.com/learn/Java/2220/?ref=app
+ 5
for user input you need a Scanner:
import java.util.Scanner;
Scanner scan = new Scanner(System.in);
String input = scan.nextLine();