Computer Science 523
Advanced Programming

Summer 2014, The College of Saint Rose

Hello BlueJ Project

Click here to download a BlueJ project for Hello.


Hello Source Code

The Java source code for Hello is below. Click on a file name to download it.


Hello.java

/* This comment on the next line is generated by the version control
system (subversion):

$Id: Hello.java 2366 2014-05-20 02:33:22Z terescoj $ 

The comment below is a "Javadoc" comment, and is used to generate
formatted documentation automatically.  Note that it starts with 
a slash and two *'s instead of one.
 */
/**
Java Hello for CSC 523
<p>
Program to demonstrate a very simple Java application, including
one class, one main method, and one printout, plus Javadoc comments

@author Jim Teresco, terescoj@strose.edu
 */
public class Hello {
    /** Not much happening, but it all happens here.
    @param args Command-line arguments (ignored)
     */
    public static void main(String[] args) {
        // all we do is greet the world
        System.out.println("Hello, world!");
    }
}

HelloNoComments.java

public class HelloNoComments {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}