Java Training Course/JT02: Difference between revisions
Jump to navigation
Jump to search
imported>Gfis new |
imported>Gfis explanations |
||
Line 1: | Line 1: | ||
== Say "Hello, World!"== | |||
In order to get a minimal aquaintance with a programming language, it is common use to write a very small program which only says "Hello, World!". This cult came up in 1978 with the C programming language. In many languages such a program will fit on a single line, but it is astonishing how many lines are needed for example in COBOL. There is a lot of [https://helloworldcollection.github.io/ further reading] with examples in 566 programming languages and dialects. | |||
This session is very simple, but it gives you a confidence that you are already able to program in Java. | |||
# Google a typical "Hello, World!" program written in the Java programming language. | # Google a typical "Hello, World!" program written in the Java programming language. | ||
# Save it in a file in the working directory which you created in [[Java Training Course/JT01|JT01]]. | # Save it in a file in the working directory which you created in [[Java Training Course/JT01|JT01]]. | ||
# Google the instructions how to compile and run it on the commandline. | # Google the instructions how to compile and run it on the commandline. | ||
# Bonus task: Write and run the same "Hello, World!" program in some other programmung language(s) of your choice (Pascal, Visual BASIC, Perl, Python etc.) | # Bonus task: Write and run the same "Hello, World!" program in some other programmung language(s) of your choice (Pascal, Visual BASIC, Perl, Python etc.) | ||
[[Java Training Course/JT01|< Previous: JT01]] Installation of the JDK<br /> | |||
[[Java Training Course/JT03|> Next: JT03]] Main Arguments and String Concatenation |
Latest revision as of 09:25, 24 September 2017
Say "Hello, World!"
In order to get a minimal aquaintance with a programming language, it is common use to write a very small program which only says "Hello, World!". This cult came up in 1978 with the C programming language. In many languages such a program will fit on a single line, but it is astonishing how many lines are needed for example in COBOL. There is a lot of further reading with examples in 566 programming languages and dialects.
This session is very simple, but it gives you a confidence that you are already able to program in Java.
- Google a typical "Hello, World!" program written in the Java programming language.
- Save it in a file in the working directory which you created in JT01.
- Google the instructions how to compile and run it on the commandline.
- Bonus task: Write and run the same "Hello, World!" program in some other programmung language(s) of your choice (Pascal, Visual BASIC, Perl, Python etc.)
< Previous: JT01 Installation of the JDK
> Next: JT03 Main Arguments and String Concatenation