0
what methods should I use for input data of the different types?
I know "nextInt()","nextLine()".but what about the other ones?
2 Réponses
+ 1
firs of all you have just next() that reads a single String. it only reads one "word". nextLine() reads an entire line. for numbers you follow the same recipe. nextInt for integers, nextDouble for doubles, nextFloat, nextLong, nextBoolean... you should really visit oracles site
0
yeah, I will