+ 1

Can someone explain this to me please (Java)

I’ve just started out yesterday (I’m currently on the arrays course on Java) and I’m confused on how to get user input. There’s only been one lesson on it and the lesson didn’t really teach you how to do it, it just showed you how to import the scanner. Can someone please explain how to get user input in Java please? Like how do you get a string input? (The lesson only showed int) Thank you - a neek

23rd Jun 2021, 4:07 PM
Jayden
6 Respostas
0
So is it the double.parsedouble thing?
23rd Jun 2021, 4:11 PM
Jayden
0
Jayden No it's not a double.parseDouble things, Scanner class has nextDouble() method. Using scanner class object you can get double value input from the user.
23rd Jun 2021, 4:19 PM
A͢J
A͢J - avatar