| 1 |
// ee: package declaration |
| 2 |
package application.helloworld; |
| 3 |
// ee: package declaration |
| 4 |
import java.util.Locale; |
| 5 |
import java.util.MissingResourceException; |
| 6 |
import java.util.ResourceBundle; |
| 7 |
|
| 8 |
/** |
| 9 |
* HelloWorld.java |
| 10 |
*/ |
| 11 |
|
| 12 |
public class HelloWorld |
| 13 |
{ |
| 14 |
// be: specific constructor |
| 15 |
public HelloWorld() |
| 16 |
{ |
| 17 |
System.out.println("Object HelloWorld created"); |
| 18 |
} // end of specific constructor "HelloWorld()" |
| 19 |
// ee: specific constructor |
| 20 |
|
| 21 |
public static final void main(final String[] args) |
| 22 |
{ |
| 23 |
String baseName = "HelloWorld"; |
| 24 |
ResourceBundle rb = ResourceBundle.getBundle(baseName); |
| 25 |
String greetings = rb.getString("hello_msg"); |
| 26 |
System.out.printf("%s\n", greetings); |
| 27 |
} // end of method "main(String[] args)" |
| 28 |
} // end of class "HelloWorld" |