Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Time with your teacher should be helpful.

    New thread at: http://www.javaprogrammingforums.com/whats-wrong-my-code/25743-program-not-printing-anything.html
  2. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    If you want the println() statements to execute and print something, the code must call the methods that have println() statements in them.

    Calling them in the driver class could be the way to do...
  3. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Where is the scoreLine() method called?
    Where is the printResults() method called?
  4. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Ok, I'll make it easier by asking one question at a time.

    Where in the code (what is the name of the method) is the println() method used?
  5. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    If there are methods that print out the messages you want to see printed, the code needs to call those methods.

    Which methods print what you want to see printed?

    Have these problems been fixed?...
  6. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Where does the code call a method that has a print or println() method in it? If you don't execute a print method nothing will be printed. The code has to call the methods that have calls to the...
  7. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Add some more println() statements that print out messages as different methods are called and different loops executed so you can see where the execution flow goes. If nothing prints, add some more...
  8. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    What happens when you compile and execute the code? What does it print out?

    You shouldn't hide }s at the end of a statement. A } should be on a line by itself so it is easy to see.

    Statements...
  9. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Use your editor's Find or Search function to find where the variable named in the error message is defined.
    The compiler can not find a definition that is in scope where that variable is being used.
  10. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    The scope of a variable used in a for loop is limited to the end of the for loop. It is not known outside of the for loop.

    What version of the JDK are you working with? I don't get the first...
  11. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    The compiler gives that message when it can not find a definition that is in scope (within the same pair of {}s) for the symbol named in the error message. The code needs to define/declare any...
  12. Replies
    24
    Views
    3,199

    Re: Java Program - Letter Frequencies - HELP!

    Please copy the full text of the error messages and paste it here.

    Please edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.
Results 1 to 12 of 12