+ 1
How can I fill any loop from the information of the user ??
3 Respostas
+ 2
Depends on the information desired. Every input function has a test to see if it will work so hasNextInt() returns true if the characters can be converted to an integer. nextInt() will read that integer. next() will read a string (all characters until a space or new line is seen.) The first link gives some examples. The second gives all options.
https://www.geeksforgeeks.org/scanner-class-in-java/
https://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html
0
In Eclipse java ??
0
selina 12
Please avoid writing your name in question tags. Instead put only words with relevance to your question topic (e.g. Java, as your question concerns Java language).
Tags are used by search feature to find questions by matching up search terms with question tags. Use of irrelevant words in tags reduce the quality and accuracy of the search feature.
Hope you understand 👍