static int shortArray_maxAbsValue(short[] c) { int x = Int.MIN_VALUE; if (c != null) for (short d : c) { int a = abs((int) d); if (a > x) x = a; } ret x; }