edu.rit.m2mi.test
Class ArrayProcessorTest02

java.lang.Object
  extended by edu.rit.m2mi.test.ArrayProcessorTest02
All Implemented Interfaces:
ArrayProcessor

public class ArrayProcessorTest02
extends Object
implements ArrayProcessor

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

process

public void process(int[] data)
Process the given array of integers.

Specified by:
process in interface ArrayProcessor
Parameters:
data - Array of integers.

main

public static void main(String[] args)
Main program.



Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.