你想要干什么呢?
不知道这个List和你的EbCategory有没有覆盖了toString()方法.Map好像是覆盖了的

解决方案 »

  1.   

    我想把category的值从jsp里接到,然后判断这个category值可是存在ebcategory中的,如果存在,找到这条记录.删除之
      

  2.   

     描述不清楚,错别字太多....Iterator it = list.iterator();//不知道是不是这样的while(it.hashNext())
    {
       ebcategory   =   (EbCategory)it.next(); 
       if(categorydd.equals(ebcategory.get......()))
       {
          list.remove(ebcategory);//请查看一下list的remove()有哪些要求. 
       }
    }