/** * Reads a list of floats from the Configuration at the given key * @param config Configuration to read * @param key Configuration key for the floats * @return list of floats from the Configuration at the given key */ public static float[] readFloats(Configuration config, String key){ try{ String[] strs = config.getStringArray(key); return ListUtils.parseFloats(strs); }catch(Throwable t){ theLogger.log(Level.WARNING, "There was an error readign key:" + key, t); return null; } }