Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does the Scanner class do?
Think about how you get input in a program.
What is the purpose of System.out.println()?
Recall how you display output in Java.
What class is commonly used for user input in Java?
Consider which class we discussed for getting input.
True or False: System.out.print() adds a new line after the output.
Think about how each method formats output.
Write a Java program that asks the user for their name and age, then writes this information to a file and reads it back.
Integrate both input classes and manage file I/O properly.
Create a program that reads integers from a file and calculates their sum. Handle exceptions appropriately.
Don't forget to close the BufferedReader after usage.
6 more questions in this section. Enroll free to practise them all.
Enroll free