DescriptionUtils { public static double[] extractNumericalRange(String description) { StringTokenizer tokenizer = new StringTokenizer(description, ","); double min = Double.parseDouble(tokenizer.nextToken()); double max = Double.parseDouble(tokenizer.nextToken()); return new double[] {min,max}; } private  DescriptionUtils(); static String createNumericalDescription(double min, double max); static String createNominalDescription(Collection<String> values); static double[] extractNumericalRange(String description); static void extractNominalValues(String description,
                                          Collection<String> target);  }
@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); }