Code example for PropertyResourceBundle

Methods: getString

0
        prb = (PropertyResourceBundle)ResourceBundle.getBundle("i18n/fastpath_i18n");
    } 
 
    public static final String getString(String propertyName) {
        try { 
            return prb.getString(propertyName);
        } 
        catch (Exception e) {
            Log.error(e);
            return propertyName;
        } 
 
    } 
 
    public static final String getString(String propertyName, Object... obj) {
        String str = prb.getString(propertyName);
        if (str == null) {
            return null; 
        } 
 
Experience pair programming with AI  Get Codota for Java