Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Initial Commit #5

wants to merge 6 commits into from

Conversation

garyanewsome
Copy link
Member

Initial push, for desk checking and trouble shooting purposes,

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
Copy link
Member

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(":");

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. :-)

Blew up the program, made a mess of things, yet strangely made it
better. Still working out the details. Still need to write to a file.
Commit for B/U purposes.
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
}

}
}
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants