Debian Codegraph @

texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_c.java

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