(Object[] arr, Object val)
| 9 | public class ArrayUtils |
| 10 | { |
| 11 | public static boolean contains(Object[] arr, Object val) |
| 12 | { |
| 13 | if (arr == null) |
| 14 | { |
| 15 | return false; |
| 16 | } |
| 17 | else |
| 18 | { |
| 19 | for (int i = 0; i < arr.length; ++i) |
| 20 | { |
| 21 | Object object = arr[i]; |
| 22 | |
| 23 | if (object == val) |
| 24 | { |
| 25 | return true; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | return false; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | public static int[] addIntsToArray(int[] intArray, int[] copyFrom) |
| 34 | { |
no outgoing calls
no test coverage detected