commit | author | age
|
c4a2ec
|
1 |
/* |
U |
2 |
Demo - Java Examples Collection |
|
3 |
Copyright (C) 2016 Ulrich Hilger |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as published by |
|
7 |
the Free Software Foundation, either version 3 of the License, or |
|
8 |
(at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
|
|
19 |
package de.uhilger.demo; |
|
20 |
|
|
21 |
/** |
d42d93
|
22 |
* Die Klasse Hallo demonstriert die Ausführung |
c4a2ec
|
23 |
* eines einfachen "Hallo Welt" als Java-Programm |
U |
24 |
* |
|
25 |
* @author Copyright (c) Ulrich Hilger, http://uhilger.de |
|
26 |
* @author Published under the terms and conditions of the |
|
27 |
* <a href="http://www.gnu.org/licenses/agpl-3.0" target="_blank">GNU Affero |
|
28 |
* General Public License</a> |
|
29 |
* |
|
30 |
* @version 1, December 31, 2016 |
|
31 |
*/ |
d42d93
|
32 |
public class Hallo { |
c4a2ec
|
33 |
|
U |
34 |
/** |
|
35 |
* <p>Einsprungspunkt für Java-Programme</p> |
|
36 |
* |
|
37 |
* <p>Aus der Java-Dokumentation dazu:</p> |
|
38 |
* |
|
39 |
* <p>The java command starts a Java application. It does this by starting |
|
40 |
* the Java Runtime Environment (JRE), loading the specified class, and |
|
41 |
* calling that class's main() method. The method must be declared public |
|
42 |
* and static, it must not return any value, and it must accept a String |
|
43 |
* array as a parameter. The method declaration has the following form:</p> |
|
44 |
* <p><code>public static void main(String[] args)</code></p> |
|
45 |
* |
|
46 |
* @param args die Parameter des Aufrufs von der Kommandozeile |
|
47 |
*/ |
|
48 |
public static void main(String[] args) { |
|
49 |
System.out.println("Hallo Welt!"); |
|
50 |
} |
|
51 |
|
|
52 |
} |