CCL Home Page
Up Directory CCL t017.html
slide

Jan K. Labanowski: "Tomcat, servlets, JSPs and other friends"

Java continued

The Hello Word in Java is:
public class HelloWorld {
   public static void main (String [] args) {
       System.out.println("Hello World");
   }
}
You compile it as:
   javac HelloWorld.java
and run it as:
   java HelloWorld
and as a result, this Java application will respond with a string HelloWorld in your terminal window.

Modified: Wed Feb 13 20:23:37 2002 GMT
Page accessed 371 times since Sun Feb 20 14:16:32 2011 GMT