public static boolean judgeEqual(String[]model)
 {
  /**无重复为false,有重复为true*/
  boolean flag=false;
  Set  set  =  new  HashSet();  
  for(int  i  =  0;i<model.length;i++)
  {  
     if(!model[0].equals(model[i]))
     {
      flag=false; 
     }
     else
     {
      flag=true;
     }
  }  
   
  return flag;
 }
 public static void main(String[]args)
 {
       String[] s  = {"1","1","1","1","1"};  
      System.out.println(judgeEqual(s));
 }