That sucked to code...Is there anyway to clean up my code? It is super messy. Should I start using methods and stuff or does this work. Is there any more possible kinks that a user could screw up (such as entering a non-integer or leaving the field blank)? Any advice? Here is my lastest version of Risk.java (I'll be working on RiskApp.java for the Menu's especially, and implementing an applicable spacer for the numbers so they can be on two lines, not just one. The only way currently to have them on two lines is to make the numbers long. I plan to implement this by creating new strings, finding the length of them and then using that number to spaces. If you know of a better way to do this, please share.)
Risk.java (At 250 lines, this is the longest
Java program I have ever written, although I've hit in the thousands for Autohotkey due to support for multiple configurations of computers.)
With much appreciation,
cc11rocks
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)