Reading Properties from a Properties File A properties filename has the form ``basename_locale.properties''. You only pass the string ``basename'' to getBundle(). ResourceBundle bundle = ResourceBundle.getBundle("basename"); // Enumerate contents of resource bundle //The next two lines should be in one line. for (Enumeration props = bundle.getKeys(); props.hasMoreElements(); ) { String key = (String)props.nextElement(); process(key, bundle.getObject(key)); }