Aan de slagGa gratis aan de slag

Printing as a calculator

Computers excel at performing calculations instantly. Rather than computing values by hand, you can let Java do the math for you and display the results. Let's see this in action!

Deze oefening maakt deel uit van de cursus

Introduction to Java

Cursus bekijken

Oefeninstructies

  • Print the result of 1+3 to the output.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

class Calculator {
	public static void main(String[] args) {
    	// Print the result of 1+3
        System.out.println(____);
    }
}
Code bewerken en uitvoeren