THINK FIRST·CODE LATER

← All labs

MyClass: completing an instance method

Problem

Complete the program so that it prints 1 and then 2.

Write it here or in your IDE, then paste it. Compile and test it yourself before comparing. Your code stays in your browser — it is never sent to or stored on the server.