0
How to take an input without printing it?
Basically, I want to ask the user for their name, but instead of printing it back to them (no idea why so much code here just prints your input back to you), it stores it. Python was so much easier.
4 odpowiedzi
0
If you have the code to ask the name and then print it
You already have the input name in a variable
You can do wherever you want with that variable
0
Tomiwa, this comment has Java tag XD
0
apologies. first post, thought it was c++
0
In that case, use the java scanner class, make sure you import the scanner object.