Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    11,279

    Re: .setText() for an int?

    It seems like the IDE should give you the warnings.
  2. Replies
    12
    Views
    11,279

    Re: .setText() for an int?

    The IDEs must have a way to display warnings about problems in the source code from the compiler that they use. I have no idea what they can do or how to control what they do.
  3. Replies
    12
    Views
    11,279

    Re: .setText() for an int?

    Add a println after every computation to see if they are all working properly.

    You need to add this javac option to the javac commandline to get the warning telling you what is wrong: -Xlint
  4. Replies
    12
    Views
    11,279

    Re: .setText() for an int?

    Add some printlns to show the values of the variables used to do the computation so you know if they are good values. Also print out the results.
  5. Replies
    12
    Views
    11,279

    Re: .setText() for an int?

    Use the variable you want to show instead of the 23
Results 1 to 5 of 5