(applet)
Save all the files using the convention used here (and u must have the valid jdk version installed in your machine!). For programs not marked as applets: -
Compile them using 'javac <filename>.java' from the command line. for ex:- javac MyEditor.java
run them using :-
'java <filename>' (without the extension) for ex:- java MyEditor (note the correct capitulation).
to run applets, use appletviewer with :-
'appletviewer <filename>.java'. for ex:- appletviewer AllShapes.java (Again, follow the proper case).