Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Check ALL the {
    make sure that there is a } that pairs with it.
  2. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    "reached end of file while parsing."
    Check for matching pairs of {}s
    Make sure they are all paired.
  3. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Enter what?
    What is the "it" that becomes?

    I don't understand what you are trying to explain. Can you say what you do and what the computer does, step by step?


    if(packageLetter...
  4. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    ALWAYS put a { after the ending ) on a if statement:
    if (some conditions here) {

    then put the end } after the last statement(s) do be done when the if condition is true. Put it on its own line.
    ...
  5. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Did you check and correct the problems with the { & }s?
  6. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Can you explain which messages pop up?
    You need to follow the logic of your program and see why each message is shown. What controls why each message is shown?

    Your usage of { & } after an if...
  7. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Is the program making a mistake then?
    There are 5 lines of code in the area in question. Take a piece of paper and a pencil and play computer executing each statement in your mind and writing...
  8. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Does that mean that the program is working?

    What do you mean by mistake? What do you call this:
  9. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Are you talking about when you format a double value to be printed?
    One way to truncate a double to 2 places is multiply it by 100, cast it to an int and then divide it by 100 to get back the...
  10. Replies
    26
    Views
    16,137

    Re: JAVA help on file: Internet Service Provider

    Do you have any specific java programming questions?


    Try debugging your code by printing out the values of all the variables used as your code computes
Results 1 to 10 of 10