11.3 - Output 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 does System.out.println() do?
💡 Hint: Think about the difference between print and println.
How would you print 'Hello' and 'World' on the same line?
💡 Hint: Remember print keeps them together.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What function does System.out.print() perform?
💡 Hint: Think about whether the current line stays or moves.
System.out.printf() is primarily used for?
💡 Hint: Recall the formatting needs discussed.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a small program that prompts the user for their first and last name, then outputs 'Hello, [First Name] [Last Name]!' using both print and println to separate parts correctly.
💡 Hint: Make sure to utilize both print and println to format your output correctly.
Using printf, create a program that calculates and outputs the average of three numbers rounded to two decimal places.
💡 Hint: Remember to handle the rounding within your printf statement.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.