The method to call must be declared as public static String, taking the first parameter as a shape or a sheet and zero or more parameters of type String. Ensure that the number of String parameters in this syntax is the same as the number of parameters in the method declaration. Otherwise, Java does not find the required method. |