Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting into Java: French Verb Conjugation Program
#18
I have been working on and off of this, and I have run into a bit of a problem. I want a command "exit()" or close out of the program. It just seems more elegant than the little "x" in the terminal / command prompt window. I did this by having two loops: One that continues as long as a boolean "isRunning" is true and one that runs forever. When the user inputs "exit()", it calls a function that sets isRunning to false and then breaks the second loop. I gets the job done, but I feel like there should be a more elegant way to do this.

I also added support for an ini file. I focused more on making it work, so I ended up downloading a library off of the Internet because the syntax was a lot simpler than the walls of jargon I found on other sites. In retrospect, this seems like bad practice.

So right now I have two concerns: 'Proper' INI management and an elegant way to exit the program.

Verb.java
 Spoiler

LesPommes.java
 Spoiler

verb_list.ini
 Spoiler
Reply


Messages In This Thread
Getting into Java: French Verb Conjugation Program - by Hazzy - 2010-10-20, 06:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)