日期:2014-05-19 浏览次数:21065 次
group=new Group(str_str[1]);
//将这个线程类加入到group的clientthread里
group.clientthread.add(this);
//打印group的内容
System.out.println(group);
//生成这个group对象的一个相应的key
GroupKey gk=new GroupKey(str_str[1]);
//打印key的值
System.out.println(gk);
//把这一对键值对加入到serverThread的grouphashmap里
serverThread.grouphashmap.put(gk,group);
//打印grouphashmap的内容
System.out.print(serverThread.grouphashmap);
//首先打印grouphashmap的内容
System.out.println(serverThread.grouphashmap);
//生成一个groupkey和gk一样
GroupKey gk1=new GroupKey(str_str[1]);
//打印一下gk1
System.out.println(gk1);
//在grouphashmap里得到gk1所对应的value
System.out.println(serverThread.grouphashmap.get(gk1));//false