boolean containsNegativeValue(int[] values) { boolean found = false; for (int i = 0; (i < values.length) && !found; ++i) { if (values[i] < 0) found = true; } return found; }