Homework Assignment 3A

Due on Monday, March 15, 2004

Using the Java API (Applications Programming Interface)

This assignment is intended to help students learn how to use the internet as a resource for java programming, and thus help them to become independent learners.

Use the Java API (located at http://java.sun.com/products/jdk/1.2/docs/api/index.html), for the following:

For each of the following classes
    a)  Sketch a picture of the hierarchy
    b)  Write a description
    c)  Write down all the libraries that must be included in order to use the class
    d)  Fill in the chart for each of the methods listed:  (Note:  If the method name appears more than once then it has   
          more than one description and more than one set of parameters.)

Class:  Object

(Sketch hierarchy here.)

Method Return Type Static or Non-Static Parameters Description Example
 

equals

         
 

toString

         

 

Class:  System

(Sketch hierarchy here.)

Method Return Type Static or Non-Static Parameters Description Example
 

out

         

 

Class:  PrintStream

(Sketch hierarchy here.)

Method Return Type Static or Non-Static Parameters Description Example
 

print

         
 

println

         

 

Class:  BufferedReader

(Sketch hierarchy here.)

Method Return Type Static or Non-Static Parameters Description Example
 

readLine

         

 

Class:  Integer

(Sketch hierarchy here.)

Method Return Type Static or Non-Static Parameters Description Example
 

parseInt

         
 

parseInt

         

 

 

Submission Method:  Neat and legible hardcopy.

Hosted by www.Geocities.ws

1