Skip to content
Snippets Groups Projects
Commit 12cfb5ff authored by Goik Martin's avatar Goik Martin
Browse files

Simple java code snippets

parent 6725f160
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,9 @@
<itemizedlist>
<listitem>
<para><xref linkend="bib_Kurniawan2015"/>. Despite
possible limitations in the number of concurrent sessions
HdM Members might be able to access this book online at
<uri
possible limitations with respect to the number of
concurrent sessions HdM Members <emphasis>might</emphasis>
be able to access this book online at <uri
xlink:href="http://proquest.safaribooksonline.com/9780992133047">http://proquest.safaribooksonline.com/9780992133047</uri>.</para>
</listitem>
</itemizedlist>
......@@ -120,9 +120,9 @@
<listitem>
<para><link
xlink:href="http://shop.oreilly.com/product/9780596009205.do">Head
First Java, 2nd Edition</link> or German <link
First Java, 2nd Edition</link> (English) or <link
xlink:href="http://www.oreilly.de/catalog/hfjava2ger">Java
von Kopf bis Fuß</link>.</para>
von Kopf bis Fuß</link> (German).</para>
</listitem>
<listitem>
......@@ -235,4 +235,53 @@
</glossentry>
</glosslist>
</section>
<section xml:id="sd1CodeSnippets">
<title>Play!</title>
<para>The following code snippets may be executed without prior knowledge.
They are intended to give you an idea about programming without
understanding the exact details. Just enjoy!</para>
<tip>
<para>You may want to watch the <link
xlink:href="http://eclipsetutorial.sourceforge.net/totalbegginer01/lesson01.html">Eclipse
and Java for total Beginners</link> beforehand.</para>
</tip>
<section xml:id="sd1SectSnippetHelloWorld">
<title><quote>Hello, World</quote> and friends.</title>
<qandaset defaultlabel="qanda" xml:id="sd1QandaSnippetHelloWorld">
<qandadiv>
<qandaentry>
<question>
<orderedlist>
<listitem>
<para>Create a class HelloWorld in Eclipse and copy the
following code:</para>
<programlisting language="java">public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World ...");
}
}</programlisting>
</listitem>
<listitem>
<para>Execute this example. You should see the following
output in Eclipse's console window:</para>
<programlisting language="none">Hello, World ...</programlisting>
</listitem>
</orderedlist>
</question>
</qandaentry>
</qandadiv>
</qandaset>
</section>
</section>
</chapter>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment