2 Replies Latest reply: Sep 22, 2008 5:04 PM by Alan.M RSS

    The operator + is undefined for the arg type(s) int ,Object (see code)

    800601
      public static ArrayList failedits;
      :
      :
      failedits = new ArrayList(Arrays.asList(edit2(),edit3(),edit4())); 
      
      for(int count=0;count<failedits.size();count++){
                          if(!(failedits.get(count).equals(0))){
                                
                                editStr = caseID + "@" + (100 + failedits.get(count)) +"@"+"@";
                                                                                       // I need to add 100 to the value i get from failedits.get(count) and get the total value .(like if failedits.get(count) gives me 2 , then i should get 102 as my value 
      // how can i do that  : it gives me an error 
      //The operator + is undefined for the arg type (s) int,Object
                                System.out.println("THE EDITSTR "+editStr);
                                System.out.println("THE EDITSTR :"+(failedits.get(count)));
                          }