|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSquareNum
public class SquareNum
This class demonstrates documentation comments.
| Constructor Summary | |
|---|---|
SquareNum()
|
|
| Method Summary | |
|---|---|
double |
getNumber()
This method inputs a number from the user. |
static void |
main(java.lang.String[] args)
This method demonstrates square(). |
double |
square(double num)
This method returns the square of num. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SquareNum()
| Method Detail |
|---|
public double square(double num)
num - The value to be squared.
public double getNumber()
throws java.io.IOException
java.io.IOException - On input error.IOException
public static void main(java.lang.String[] args)
throws java.io.IOException
args - Unused.
java.io.IOException - On input error.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||