Search:

Type: Posts; User: helloworld922

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    1,475

    Re: Problem with Return Function

    Have a compareTo method, which will return the difference of the two numbers. Then use the above logic in your showResult method. Your getNum method doesn't need to be changed.
  2. Replies
    4
    Views
    1,475

    Re: Problem with Return Function

    Please surround your code with highlight tags. See my signature for how to do this.

    Think about this mathematically:

    given two numbers a and b, you can determine which how the two numbers are...
Results 1 to 2 of 2