Compares the two specified int values. The sign of the value returned is the same as that of ((Integer) a).compareTo(b). Note for Java 7 and later: this method should be treated as deprecated; use the equivalent Integer#compare method instead. @param a the first {
(int a, int b)
| 133 | |
| 134 | |
| 135 | public static int compare(int a, int b) { |
| 136 | return (a < b) ? -1 : ((a > b) ? 1 : 0); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Returns {@code true} if {@code target} is present as an element anywhere in {@code array}. |
no outgoing calls
no test coverage detected