Hmm.. it might mean that. I guess i'll take the numbers out? And no, I dont need to count the numbers, just letters.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hmm.. it might mean that. I guess i'll take the numbers out? And no, I dont need to count the numbers, just letters.
And after changing that, it does, in fact, get past that error. However, another one does occur.
"java.lang.StringIndexOutOfBoundsException: String index out of range: 6926
at java.lang.String.charAt(String.java:695)
at FrequencyAnalysis.setOccurance(FrequencyAnalysis.j ava:52)
at FrequencyTester.main(FrequencyTester.java:23)"
And when I print each letter as it tests them, it shows that it throws it on the last letter in the file.
What is your code now? Did you remove 0-9 in both places?
Saintroi (April 17th, 2012)
Ahhh I forgot to do it in the second one! That fixed it! Everything looks like it works now, I will post again if I have another problem! Thanks a ton!