Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting into Java: French Verb Conjugation Program
#3
You should probably look into the "switch/case" structure, it's ideal for this type of thing.

And even if you don't implement anything other than the present tense for now, you might want to structure your code with other tenses in mind.



You might also want to consider (not saying this is a good idea) putting the endings into a static variable and then linking that back.

Eg. PRESENT_ER = {'e', 'es','e','ons','ez','ent'}
Then just passing that array back instead of combining the parts. Ex. verb.showVerb(PRESENT_ER)
Reply


Messages In This Thread
Getting into Java: French Verb Conjugation Program - by Stereo - 2010-10-13, 01:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)