/**
**
** MiddCor-C# DemoJava
**			CORBA Solution for .Net with C# Language mapping							 
**																			 
**				
** Copyright:
**			Middsol GmbH, Hamburg
**			Germany  2004
**			www.middsol.com
**			info@middsol.com	
**
*/

package Arrays;


import java.rmi.RemoteException;
import javax.rmi.PortableRemoteObject;
import java.util.*;


public class GreetingsImpl extends PortableRemoteObject implements Greetings{

	public GreetingsImpl() throws RemoteException {
		super(); 
	}
	
	public String[][] hello( String[][] names)  throws RemoteException {

		System.out.println("Method executed: GreetingsImpl.hello(String[][])");
	
		for( int x = 0; x < names.length; x++)
		{
			for( int y = 0; y < names[x].length; y++)
			{
				System.out.println("\t[" +  x + "][" + y + "]  Value: " + names[x][y]);
				names[x][y] = "Greetings to " + names[x][y];	
			}
		}
		return names;
	}
}

