hello


hello, a java code which simply prints the message "Hello, world!".

This is a very simple file, named Main.java, involving a single function named main(), which prints the message.

A simple way to use the code interactively is to compile:

        javac Main.java
      
(which creates the file Main.class) and then run:
        java Main
      
after which you should get the response:
        "Hello, world!"
      
In the following, however, we will assume that compilation and execution are done indirectly, through script files.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

hello is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a Java version and a Julia version and a MATLAB version and a Python version and an R version.

Related Data and Programs:

hello_test

Reference:

Source Code:


Last revised on 14 November 2023.