-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Commit #5
base: master
Are you sure you want to change the base?
Conversation
Initial push, for desk checking and trouble shooting purposes,
// Put you read logic and populate lines | ||
while (this.input.hasNext()) { | ||
String line = this.input.nextLine(); | ||
if (line.charAt(0) != '#') { // excludes commented header lines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Bloody typo's and ; 's will get you everytime.
Ta Da!
|
||
// seperate the file's line into die | ||
for (int ii = 0; ii < fileLine.length; ii++) { | ||
String[] dieConfig = fileLine[ii].split(":"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the use of i and ii in your for loops. A third nested loop could use iii, I would assume. It kinda ties them together and tells you where in the loops you are. I think I'm going to steal your idea. :-)
Program works and writes output to a file. I left it so the program will also print to the IDE, easier for checking results. I feel like it could have been broken down further even into more objects or methods.
Rewrote Try Catch statement to enclose only the statement and not the block
} | ||
|
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had so much trouble with this assignment. Your setup made the most sense to me. I tried to follow your flow, but I still could not get mine to run.
Initial push, for desk checking and trouble shooting purposes,