blob: 99a92c62497685769daa462f9c9ebc85991b392f (
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
|
package test1;
import java.util.Hashtable;
class RenameClass2 {
String name;
}
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");
}
}
|