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