java.lang.Object | +--COMPUTE
UD5 Example Class.
This class is provided for example purposes only.
Constructor Summary | |
COMPUTE()
|
Method Summary | |
static void |
ACCEPT()
Placeholder. |
static long |
ADD(double a,
double b)
Add two double's |
static long |
ADD(java.lang.String a,
java.lang.String b)
Add the absolute value of the numeric portion of two strings |
static void |
EXEC()
Placeholder. |
static java.lang.String |
HELLO()
Return a test string |
static java.lang.String[] |
HELLOA()
Return an array of strings as a test |
static void |
main(java.lang.String[] args)
Test the class. |
static void |
QUIT()
Placeholder. |
static int |
SUBTRACT(int a,
int b)
Subtract two integers |
static int |
VAL(java.lang.String a)
The absolute value of the numeric portion of a string. |
static void |
VVAL(java.lang.String a)
Determine the absolute value of the numeric portion of a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public COMPUTE()
Method Detail |
public static void main(java.lang.String[] args)
java COMPUTE Calculate 1+2= 3
Any
- public static int SUBTRACT(int a, int b)
a
- first integer.b
- second integer.public static long ADD(double a, double b)
a
- first doubleb
- second double.public static long ADD(java.lang.String a, java.lang.String b)
a
- first numeric stringb
- second numeric stringpublic static java.lang.String HELLO()
public static java.lang.String[] HELLOA()
public static int VAL(java.lang.String a)
a
- A numeric stringpublic static void VVAL(java.lang.String a)
a
- A numeric stringpublic static void ACCEPT()
public static void QUIT()
public static void EXEC()