diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java')
-rw-r--r-- | Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java new file mode 100644 index 00000000000..9b86cf6371a --- /dev/null +++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java @@ -0,0 +1,28 @@ +// ee: package declaration +package application.helloworld; +// ee: package declaration +import java.util.Locale; +import java.util.MissingResourceException; +import java.util.ResourceBundle; + +/** + * HelloWorld.java + */ + +public class HelloWorld +{ + // be: specific constructor + public HelloWorld() + { + System.out.println("Object HelloWorld created"); + } // end of specific constructor "HelloWorld()" + // ee: specific constructor + + public static final void main(final String[] args) + { + String baseName = "HelloWorld"; + ResourceBundle rb = ResourceBundle.getBundle(baseName); + String greetings = rb.getString("hello_msg"); + System.out.printf("%s\n", greetings); + } // end of method "main(String[] args)" +} // end of class "HelloWorld" |