+ 1

How can I fill any loop from the information of the user ??

29th Nov 2019, 7:38 PM
selina 12
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
29th Nov 2019, 8:48 PM
John Wells
John Wells - avatar
0
In Eclipse java ??
29th Nov 2019, 7:50 PM
selina 12
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 👍
30th Nov 2019, 11:16 AM
Ipang