• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed in compiling  RSS feed

 
Atul Prabhu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two classes A & B, each having a reference of the other class.

class A {
B b;
}

class B {
A a;
}

How do I compile these classes in one go ?
One solution is while compiling "A" remove the object B and then compile A.
Is there any other solution other than this ?


---
Atul
[ July 30, 2004: Message edited by: Atul Prabhu ]
 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac *.java
 
Atul Prabhu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks it worked.
Sometimes simpler things tend to look hard.Actually both the classes were in different package.
 
Jack Kay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh cool, thank you that helped me out too
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!