KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How could I read input from the console using the Scanner class? Something like this: System.out.println("Enter your username: "); Scanner = input(); // Or something like this, I don't know the code Basically, all I want is have the scanner read an input for the username, and assign the input to a String variable.
Tags (comma-separated)
Save Edits
Cancel