|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PointCPTest
This class prompts the user for a set of coordinates, and then converts them from polar to cartesian or vice-versa.
Constructor Summary | |
PointCPTest()
|
Method Summary | |
private static PointCP |
getInput()
This method obtains input from the user and verifies that it is valid. |
static void |
main(java.lang.String[] args)
This method is responsible for the creation of the PointCP object. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PointCPTest()
Method Detail |
public static void main(java.lang.String[] args)
java
PointCPTest <coordtype (c/p)> <X/RHO> <Y/THETA>
and the second by getting the program to prompt the user.
If the user does not enter a valid sequence at the command line,
the program will prompte him or her.args[0]
- The coordinate type. P for polar and C for
cartesian.args[1]
- The value of X or RHO.args[2]
- The value of Y or THETA.private static PointCP getInput() throws java.io.IOException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |