CS 1063
Lab 1: An Introduction to Objects and Classes
The
FaceMain Class
Objectives
Type in a simple program in DrJava and execute it
Demonstrate your ability to use the System.out.println
method
Demonstrate your ability to use Strings and escape sequences
Hand-in Requirements
All laboratories will be submitted electronically through WebCT.
Zip up your entire laboratory folder to submit as the source.
(Right click on the laboratory folder and follow the SentTo
link.) The laboratory folder should include the following:
FaceMain.java
Details
Write a program that produces the
face below.
||||||||||||||||
| |
| |
| |
| O O |
| |
_| U |_
|_ _|
| \_____/ |
| |
| |
\____________/
Setup
Folder Name: Face
Create a new class with name: FaceMain
public class FaceMain {
public static void main(String[] args) {
// Your print statements go here.
}
}
Save the class in the Face folder
Compile your program.
Run your program.
Print Statements
Enter the print statements to output the face above. Compile and run
your program until there are no errors.