Quote:
|
Originally Posted by Eric the Red
Please post what you have so far. Also, include the line number of where the error occurs.
|
public class test2{
public void main(String [] Args){
System.out.println("hi");
}
} in the file test2.java
and
public class test1{
public static void main(String [] Args){
test2 aa;
String[] arg;
aa.main(arg);
}
} in the file test1.java.
test2.java can be compiled but not executed. When test1.java is compiled, the error is what I just posted in my first post.