Code example for ResourceBundle

Methods: getString

0
	private Messages() { 
	} 
 
	public static String getString(String key) {
		try { 
			return RESOURCE_BUNDLE.getString(key);
		} 
		catch (MissingResourceException e) {
			return '!' + key + '!';
		} 
	} 
}