import java.rmi.*;
import java.util.*;

public class HashTableC {
	public static void main(String args[] ) {
	String plusMovie = "Smoke Signals";
	Hashtable aHashTable = new Hashtable();
	aHashTable.put("plusplus  Movie", "Comedian Harmonists");

	System.out.println("Client: aHashTable local = " +
			aHashTable.toString());
	try {

		HashTableInterface obj =
			 (HashTableInterface)Naming.lookup("//yps/HelloServer");

		aHashTable = obj.playWithAHashTable(plusMovie);

	} catch (Exception e) {
		System.out.println("HelloApplet exception: " +
		e.getMessage());
		e.printStackTrace();
	}
	System.out.println("Client: aHashTable remote = " +
			aHashTable.toString());
  }
}

