Printing out
One of the most essential skills in programming is displaying output. Whether you're debugging code, showing results to users, or just confirming your program works, you'll use print statements constantly. Let's practice this fundamental skill!
This exercise is part of the course
Introduction to Java
Exercise instructions
- Add the print method name after
System.out.to display text to the screen.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
class WelcomeToJava {
public static void main(String[] args) {
// Add the print method
System.out.____("Welcome to Java!");
}
}