Completion of the following simple exercises will insure that you
have successfully installed your JDK and know the basic mechanics
of creating source code files (i.e. the *.java files), compilation,
creating applets and running applications.
- Create your own applet that gives a message with your name,
e.g.
" Hello World, my name is John Doe".
- Create your own application program that prints out your name
to the command line.
Note: The source code file name and
the class name must match exactly in upper and lowercase or the
compiler will complain. For example, the file for the HelloWorld
class file must be HelloWorld.java.
If you name it helloWorld.java
it will not compile.
|