Read about the Java API in Section 2.2 (page 36) of the Gaddis text. Next, go to the documentation of the Java API at http://java.sun.com/j2se/1.5.0/docs/api/ to find the answers to the questions below. You do not need to read the API documentation in detail to answer these questions. The objective of this exercise is for you to learn about the API and to learn how to find detailed specifications should you have the need in the future. To answer most of these questions, you only need to skim through the first pages of the description or tables for each class. Save your answers in a plain text file api.txt and submit it to CMS.
Math
class. How many abs
methods (absolute value) are there? What are the two fields in the Math
class?System
class. Which method do you use
to get the current system time?Double
class. What does the field MIN_VALUE
store?String
class. What does method trim
do?DecimalFormat
class. How do the
pattern characters 0
and #
differ?