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.

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29

Thread: Cant find stupid bug.

  1. #26
    Member
    Join Date
    Apr 2012
    Posts
    60
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default Re: Cant find stupid bug.

    Hmm.. it might mean that. I guess i'll take the numbers out? And no, I dont need to count the numbers, just letters.

  2. #27
    Member
    Join Date
    Apr 2012
    Posts
    60
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default Re: Cant find stupid bug.

    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.

  3. #28
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Cant find stupid bug.

    What is your code now? Did you remove 0-9 in both places?

  4. The Following User Says Thank You to pbrockway2 For This Useful Post:

    Saintroi (April 17th, 2012)

  5. #29
    Member
    Join Date
    Apr 2012
    Posts
    60
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default Re: Cant find stupid bug.

    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!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. (TOTAL BEGINNER)Stupid problem but still...
    By ggmike in forum What's Wrong With My Code?
    Replies: 7
    Last Post: January 5th, 2012, 10:01 PM
  2. what the stupid problem in using netbeans
    By ms_ceng in forum Java IDEs
    Replies: 3
    Last Post: December 13th, 2011, 03:28 AM
  3. Is this a stupid idea?
    By Kerr in forum Java Theory & Questions
    Replies: 4
    Last Post: November 30th, 2011, 01:29 PM
  4. Stupid thing can't find image icon right in front of it!!!
    By javapenguin in forum What's Wrong With My Code?
    Replies: 14
    Last Post: July 9th, 2010, 01:02 AM
  5. My doubt may be stupid
    By kalees in forum Object Oriented Programming
    Replies: 2
    Last Post: September 22nd, 2009, 02:38 AM