|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.m2mi.test.ArrayProcessorTest02
public class ArrayProcessorTest02
Class ArrayProcessorTest02 is a main program for testing M2MI. It exports an
object which implements interface ArrayProcessor
. Whenever the object's process() method
is called, the object prints the length of the array and checks whether the
value of each array element is equal to the corresponding array index. Use
the
ArrayProcessorTest01
program to
call the process() method via an omnihandle invocation.
Usage: java edu.rit.m2mi.test.ArrayProcessorTest02
Method Summary | |
---|---|
static void |
main(String[] args)
Main program. |
void |
process(int[] data)
Process the given array of integers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void process(int[] data)
process
in interface ArrayProcessor
data
- Array of integers.public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |