What happens if you try to compile and run the following code:
public class Main { public static void main(String arguments[]) { someMethod(arguments); } public void someMethod(String[] parameters) { System.out.println(parameters); } }
someMethod
needs to be declared as static.c
You cannot access an instance method from a static method.