0

Hi all

I tried todo javac command on two classes (one after another)
the problem is when I javac the first it gives me error ,because class of the second not already exist,the same happen when i javac the second ,class of the first also not already exist.
how to overcome ?

thank you
denny

class home{
 
	     int lastMenu;
	     SubMenu subMenu = new SubMenu(this);
	     int getLastMenu() {
	         return lastMenu;
	     
	}
	}
class SubMenu {
	     home father;
	     // constructor
	     SubMenu(home father) {
	        this.father = father;
	     }
	
	      int lastMenu = father.getLastMenu();
	
}
4
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by dmanw100
0

Remember that you can pass multiple files to javac to compile. Instead of doing them separately, try javacing them at the same time.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.