Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    Try compiling with the javac command using the -xlint option to get useful warning messages.

    What controls the value of isNumber?
  2. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    Have you fixed the problem? I don't see any comments in the last post.

    I'm done for tonight. Back tomorrow.
  3. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    Please edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.


    Where controls the value of isNumber?
  4. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    You need to use the javac command's -Xlint option for warnings. For example:

    D:\Java\jdk1.7.0.7\bin\javac.exe -Xlint Salesperson.java

    I have no idea how to tell an IDE how to use that javac...
  5. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    I think if you were to use the -Xlint option to get the compiler's warning message, it would help you fix part of the problem.

    The poorly positioned {}s make the code hard to read and understand,...
  6. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    Did you see these from my last post:

    Some of the usage of {}s is unusual and could be causing you problems. Proper formatting makes the code easier to read and understand.

    You need to use the...
  7. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    That's not quite what I think of an error message.

    Can you post the console's contents from when the program is executed to show what you are talking about?

    Some of the usage of {}s is...
  8. Replies
    17
    Views
    1,047

    Re: New to JAVA need some help

    Do you get an error message? Please copy the full text of the error message and paste it here.
    Copy all of the console that shows what was printed and what the user entered.

    On Windows: To copy...
Results 1 to 8 of 8