DescriptionUtils { static double[] extractNumericalRange(CharSequence description) { String[] tokens = COMMA.split(description); double min = Double.parseDouble(tokens[0]); double max = Double.parseDouble(tokens[1]); return new double[] {min,max}; } private  DescriptionUtils();   }
@Test public void testExtractNumericalRange() { String description = "-2.06,12.32"; double[] range = DescriptionUtils.extractNumericalRange(description); assertEquals(-2.06, range[0], EPSILON); assertEquals(12.32, range[1], EPSILON); }