I\'ve recently switched from working in PHP to Java and have a query. Want to emphasise I\'m a beginner in Java.
Essentially I am working in File A (with class A) a
You don't need to create an instance of the class to call a static method, but you do need to import the class.
package foo; //assuming B is in same package import foo.B; Public class A{ String[] lists = B.staticMethod(); }