I have the below code:
public class class1 {
.............
public static void calls(String[] args) {
................
Now I am trying to call this method "calls" of "class1" in an another class within an another method like below code:
public class newClass extends abc {
public void executemywork() throws CIException {
class1.calls(args); //error here "args" cannot be resolved to a variable
I have tried looking at other solutions in stack overflow. I even tried by creating object of "class1" and using it in the second method. I am still getting the same error here. The error says "args" cannot be resolved to a variable. Both The classes are in different packages and I have imported the other class as well.