01-Basics Files =============== EmptyClass.java -- the simplest Java file EmptyProgram.java -- the simplest Java program Hello.java -- a traditional first program SimpleProgs.java -- a VERY detailed description of a simple program These four files show you the minimum requirements for Java. EmptyClass is the smallest possible Java file. EmptyProgram adds a "method" named "main" to turn the empty class into an empty "program" -- a Java class you can "run". (It does nothing!) Hello is the Java version of the traditional first program for a programmer to write -- it simply prints the sentence "Hello, World!" Finally, SimpleProgs is a very simple program with LOTS of comments saying what goes in each part of the program, and how the indentation helps us see the various parts of the program. Output.java -- a program that does some output Variables.java -- a program that creates and uses variables SimpleMath.java -- a program that does math with numbers and variables RectangleArea.java -- a program that does input and math Strings.java -- a program that shows some things you can do with Strings IOTesting.java -- a program that shows how to do input RollDice.java -- a program that shows how to simulate rolling dice The programs above are examples of basic Java programming. Most of them are just "practicing" programs -- showing how to do things. Look in these programs for ideas on how to do the things we ask you to do in the labs and assignments. DrawFaceFX.java -- a program to draw a happy face using JavaFX GUI. DrawFaceSwing.java -- a program to draw a happy face using Swing GUI. These programs draw a happy face. One uses the JavaFX API and the other uses Swing GUI API. These are two ways of creating GUI programs in Java.