Use the stepwise refinement approach, described in Chapter 1, to convert your specification into a Java class definition. That is, write the program in small stages, compiling and running the program after each stage is coded. This will enable you to localize any errors that are made. Remember that Java is case sensitive and very fussy about the spelling of identifiers and keywords.
Note: Rather than typing everything from scratch, another way to write this code is to copy and paste an existing program. You can download the Rectangle.java source code from the course web site. Just follow the links on
http://www.cis.umassd.edu/~x2zhang/courses/CIS180/F03/labs/lab3/Rectangle.java
You can then modify it using cut, copy, and paste editing.
Reasonable coding stages for this project would be
System.out.print("The area of circle1 is ");
System.out.println(circle1.calculateArea());