Forum: Java Nov 12th, 2008 |
| Replies: 8 Views: 766 What you'll want in your "getLimbs()" method is for it to look like this I suspect:
Limb[] getLimbs(){
Limb[] limbs = new Limbs[4];
//Add arms and legs to limbs array
return limbs;
} |
Forum: Java Nov 12th, 2008 |
| Replies: 8 Views: 766 All this talk of passing limbs around is somewhat creepy :p |
Forum: Java Nov 10th, 2008 |
| Replies: 28 Views: 1,731 You're sort of right. The classes I was mentioning were generated by crawling throught the DB and writing java code off of the table information. It was really sweet. It didn't use reflection though.... |
Forum: Java Nov 10th, 2008 |
| Replies: 28 Views: 1,731 I've reflection to make method calls on auto-generated DAO objects that were based on similar tables in my data base. There are good uses for reflection, but most of the time you can get by without... |
Forum: Java Nov 10th, 2008 |
| Replies: 28 Views: 1,731 BestJew: Yeah, I meant an if statement. Reflection is probably overkill for your stated requirements. |
Forum: Java Nov 10th, 2008 |
| Replies: 28 Views: 1,731 If you make your object Serializable then you can store information about the object in String form. It won't be as readable as "germanShepard" but you could store objects serials somewhere to enter.... |
Forum: Java Nov 10th, 2008 |
| Replies: 3 Views: 428 It looks like you don't save the input anywhere other than in displayMenu(). None of the other methods can see that input variable.
You could have displayMenu() return the character that the user... |