|
|
Ch 2 Questions #5 Packages and the Math
class |
|
|
|
1. Why do you not have to instantiate the
Math class to use Math class methods? 2. How do you make a random integer? 3. What is necessary at the beginning of
the program to use the methods of the Math class? 4. How would you take the square root of
a number? 5. How many methods are there in the Keyboard class? 6. What is the function of the import declaration? 7. How are random numbers generated by the Random() class? 8. What is the difference between the NumbeFormat class and the DecimalFormat class? 9. How would you represent a percent in a Java application program? 10. How would you format a double to have three
numbers after the decimal place? |
|