Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ResourceBundle;
- public class HelloWorld2 {
- public static void main(String[] args) {
- final String messageBundleName = HelloWorld2.class.getPackage().getName().replace('.', '/') + "/MessagesBundle";
- final ResourceBundle messagesBundle = ResourceBundle.getBundle(messageBundleName);
- final String genericGreetingMessage = messagesBundle.getString("generic.greeting.message");
- System.out.println(genericGreetingMessage);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement