Code:
/**
* Write a description of class FirstJava here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class FirstJava extends java.applet.Applet
{
// instance variables - replace the example below with your own
public static void main(String[] args)
{
String nameString = new String("Alex Wait");
System.out.println(nameString);
}
/**
* Constructor for objects of class FirstJava
*/
public FirstJava()
{
}
}
Hmm. Nothing comes up. This is my first try at Java programming. It's a cool language, but I really want to use it for web based programming. I have other tools for desktop apps.
But when I run that page I typed above, nothing happens in Safari. In FF, some weird message appears...
Help!