I'm so confused on the java user input. google won't help? | Sololearn: Learn to code for FREE!
0

I'm so confused on the java user input. google won't help?

I've tried google by looking it up, don't want to use xp to see the answers, i wanna learn, but this user input is so confusing. getLine, nextLine, nextGet, what do they all mean? I was suddenly blasted in the face with this info, no explanation on how it works or what it is! Someone please help!

25th Jan 2019, 5:18 PM
Amanda Steiro
Amanda Steiro - avatar
1 Answer
+ 1
Don't melt your brain about it. Just remember to use next() or nextLine() for strings nextInt() for integers and so on If you use an IDE it's likely to show you all available method, and you'll have to choose the one that suits the situation the best. Besides, unless you make a console project specifically, you won't use it that much, nowadays everything is through GUIs
25th Jan 2019, 7:52 PM
voidneo