Practice - Introduction to I/O in Java
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is input in a Java program?
💡 Hint: Think about what data the user enters.
What class do we use to read user input?
💡 Hint: Remember the name we import.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does input mean in Java?
💡 Hint: Think about what the user gives the program.
True or False: System.out is used for reading input in Java.
💡 Hint: Consider what System.out does.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Write a Java program that continuously asks for user names until the user types 'exit'. What will you do with the names entered?
💡 Hint: 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.
💡 Hint: Think about how you can add variables to keep track of things.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.