static double firstNonNegativeDouble_orMinus1(double... l) { for (double d : l) if (d >= 0) ret d; ret -1; }