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
Ensure you have proper access to B.staticMethod. Perhaps declare it as
public static String[] staticMethod() { //code }
Also, you need to import class B
import foo.bar.B; // use fully qualified path foo.bar.B public class A { String[] lists = B.staticMethod(); }