your first one

public class hello_world
//this is a comment: case sensitive
{
public static void main (String[] args)
{
System.out.println(“Hello World”);
//this is a comment: simple print-command, would be echo in php
}
}
unter filename ‘hello_world.java’ abspeichern
commandline:
javac hello_world.java
java hello_world

Advertisements

About this entry