View Single Post
  #4 (permalink)  
Old 08-03-2007, 05:33 PM
uncopywritable uncopywritable is offline
Member
 
Join Date: Jul 2007
Posts: 13
uncopywritable is on a distinguished road
Re: Calling a method in another class
First off, gabriel - I tried your suggestion and it works if I declare the main method of Card:

Code:
public static void main() { }
instead of:

Code:
public static void main(String[] args) { }
writing

Code:
Card card = new Card(); card.main(String[] args);
in the main of Menu doesn't work! It would be great if I could activate methods regardless of the argument they take. Is there a way to do this?
Reply With Quote