java数组去重

  1. for(int i=0;i<test1.length;i++)      
  2.          {    
  3.              if(!list.contains(test1[i]))    
  4.                   list.add(test1[i]);          
  5.          }
posted @ 2013-02-20 16:48  踏刃而起  阅读(146)  评论(0编辑  收藏  举报