Aan de slagGa gratis aan de slag

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!

Deze oefening maakt deel uit van de cursus

Introduction to Java

Cursus bekijken

Oefeninstructies

  • Add the print method name after System.out. to display text to the screen.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

class WelcomeToJava {

    public static void main(String[] args) {
    
    	// Add the print method
    	System.out.____("Welcome to Java!");
   }
}
Code bewerken en uitvoeren