Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is input in a Java program?
Think about what data the user enters.
What class do we use to read user input?
Remember the name we import.
What does input mean in Java?
Think about what the user gives the program.
True or False: System.out is used for reading input in Java.
Consider what System.out does.
Write a Java program that continuously asks for user names until the user types 'exit'. What will you do with the names entered?
Use a loop to keep asking for input until a certain keyword is entered.
Modify the program above to count and display how many names were entered before 'exit' was typed.
Think about how you can add variables to keep track of things.
6 more questions in this section. Enroll free to practise them all.
Enroll free