2010-10-13, 08:47 PM
Reading from files is something I have not done a lot of, so I will have to look around a bit on how to do that. Before I start playing with that, however, I want to make sure the rest of my program is solid. (Or at least promoting good habits)
I went through my code and rewrote it to be more organized. I changed some names. I changed how the information is stored - instead of storying the conjugated verb in an array, I have a function return the conjugated form of the verb given a pronoun input. tense and infinitive are set as final variables that are defined during the object's creation. Imperfect verb endings are independent of the verb type, so I have the method check for type only if tense is present. If no tense is entered, the program defaults to present.
I think that's the basis of what I changed. I have been working on and off of this for the past few hours so my memory is a bit foggy. I tried to hit everything you guys mentioned, but I might have missed something.
The current ini file I have laid out to use (but do not use yet):
Adding accents where they belong is something I should do too.
I went through my code and rewrote it to be more organized. I changed some names. I changed how the information is stored - instead of storying the conjugated verb in an array, I have a function return the conjugated form of the verb given a pronoun input. tense and infinitive are set as final variables that are defined during the object's creation. Imperfect verb endings are independent of the verb type, so I have the method check for type only if tense is present. If no tense is entered, the program defaults to present.
I think that's the basis of what I changed. I have been working on and off of this for the past few hours so my memory is a bit foggy. I tried to hit everything you guys mentioned, but I might have missed something.
LesPommes.java
Verb.java
The current ini file I have laid out to use (but do not use yet):
Spoiler
Aller is only irregular for the singular pronouns, in the present, so when the program tries to look up plural pronouns, it should return nothing and continue on with regular conjugation.Adding accents where they belong is something I should do too.

