Search:

Type: Posts; User: Junky

Search: Search took 0.08 seconds.

  1. Re: Checking if number is in between two other numbers?

    I took it to mean that A could be less than C or A could be greater than C. Either could be true so you would have to test both cases.
  2. Re: Checking if number is in between two other numbers?

    System.out.println(b > (a < c ? a : c) && b < (a > c ? a : c));
Results 1 to 2 of 2