Web Page

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
Historical topic: Java appletsModern web browsers do not run Java applets. The Applet API was deprecated for removal before Java 25 and was removed in Java 26. Treat applet examples on this page as historical object-oriented/GUI examples; for new desktop interfaces use Swing where appropriate or JavaFX/OpenJFX.

Answer:

You need a Web page to use with a Web browser or with the appletviewer.

Web Page

Here is a minimal Web page for use with this applet. The width and height are required, but you may change their values. Copy and paste it to an editor and save it as a file named, perhaps, SnowFlake.html.

<!-- SnowFlake.html -->
<html>
<body>
<applet code="SnowFlake.class"  width="400" height="400">
</applet>
</body>
</html>

Put Snowflake.java and Snowflake.html in the same subdirectory. Compile Snowflake.java and then use the appletviewer.

C:/JavaNotes>javac SnowFlake.java

C:/JavaNotes>appletviewer SnowFlake.html

QUESTION 15:

If you can draw one snowflake, can you draw dozens?