Hmm.. it might mean that. I guess i'll take the numbers out? And no, I dont need to count the numbers, just letters.
Printable View
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?
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!