Java 2 Primer Plus

   

Java™ 2 Primer Plus

By Steven Haines, Steve Potts

Table of Contents
Chapter 5.  Methods

1:

Implement the isPrime method mentioned in the chapter and test it from your main method.

2:

Write a method that computes the area of a circle. Note the area formula is

area = PI * r * r

3:

Write a series of methods that compute the area of a rectangle for int, long, and double values.


       
    Top
     

    Категории