Solution
System.out.println (“Hello”);
public static void main (String arg[]) {
t.sayHello(); // Corrected
One merely needs to resolve this ambiguity to correct the
program. Thus, just make an instance of the class, and reference/invoke the object’s members.