1 package test1; 2 3 import java.util.Hashtable; 4 5 class RenameClass2 { 6 String name; 7 } 8 9 @SuppressWarnings({"rawtypes","unchecked", "unused"}) 10 public class RenameClass { 11 private Hashtable table; RenameClass()12 public RenameClass() { 13 table = new Hashtable(); 14 } 15 test()16 public int test() { 17 say(); 18 return 0; 19 } 20 say()21 public void say() { 22 RenameClass2[] pair = new RenameClass2[2]; 23 pair[0] = new RenameClass2(); 24 table.put("Muga", pair); 25 RenameClass2[] p = (RenameClass2[]) table.get("Muga"); 26 } 27 } 28