Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    12
    Views
    1,056

    Re: I keep getting a returned value of 0

    That is the default String returned by an object's toString() method: the classname followed by @ and the hashcode for the object. You will have to call some of the object's methods to get its...
  2. Replies
    12
    Views
    1,056

    Re: I keep getting a returned value of 0

    You'll have to post the program's output and explain what is wrong with it and also post the code that generates it.
  3. Replies
    12
    Views
    1,056

    Re: I keep getting a returned value of 0

    You can build a String to print by using the + operator:
    String aStr = "some " + 4 + " parts";
  4. Replies
    12
    Views
    1,056

    Re: I keep getting a returned value of 0

    Build the String to print using the + operator.
  5. Replies
    12
    Views
    1,056

    Re: I keep getting a returned value of 0

    Do you know about integer arithmetic 50/60 = 0
    Try changing variables to double vs int

    Please Edit your post and wrap your code with
    <YOUR CODE HERE> to get highlighting
Results 1 to 5 of 5