To execute/call a method in a class you need a reference to the class followed by a . followed by the method name. Like this: out.println("hi");
Here the object reference is out and the method is...