Nathan D Jones wrote:but now keywords count doesn't seem to be working well.
Pawel Pawlowicz wrote:Please, UseCodeTags <- click this
Why didn't you follow Tony's advice? Why didn't you think about the problem thoroughly before you coded?
Why do you write data to a file just to read it again in a moment? Can't you store your result in some sort of collection?
Why this?What if there is more data and it doesn't fit into this array?
You'll get ArrayIndexOutOfBoundsException.
Why are you using an array? I would use a Map. (...)
There are three kinds of actuaries: those who can count, and those who can't.
Piet Souris wrote:I cannot call a reply like this one anything other than "Bullying a Beginner". Do you really think you
are helping the OP here?
You're welcomeNathan D Jones wrote:Thanks for all the great feedback. . . .
Two answers:1: What if there is more data and it doesn't fit into this array? . . .
But you appear to be changing the delimiter after reading. Decide which delimiter you require and set it at the start of the program.2. Why change delimiter? . . .
OK3. Why read then write then read again? Requirement of the project.
Maps are really good; you can read about them here. I have not read enough of your code to know whether a Map will be useful in your program or not.4. Why not use a map? Beginner, not familiar with this data type
Thank you.5. Not taking this personally so don't worry about harsh responses. . . .
You can only sort that sort of problem out in small stages. Have you got a class which encapsulates all those data? Can you put the information into it? If you can get the info into the class, you can create an object, then you can get the info back from it with its methods.6. What does it mean by not working? For the user above, . . .