List<String> contentList = new ArrayList<String>();   
 for (int i = 0; i < rowCount; i++){   
     String rowContent = rowsContents[i];   
     String[] timeandcontent = rowContent.split(" ",2); 
     TimeAndContent timeContent=new TimeAndContent();
     timeContent.setTime(timeandcontent[0]);
     timeContent.setContent(timeandcontent[1]);
     contentList.add(0, timeContent.getTime());
     contentList.add(1, timeContent.getContent());
     //contentList.add(timeContent);
            }  
 //去重
 Iterator<String> it=contentList.iterator(); 
 while(it.hasNext()){
 String a=it.next();
 if(contentList.contains(a)){
 it.remove();
 }else{
 contentList.add(a);
 }
 }
         //排序   
           Collections.sort(contentList);
           //.sort(contentList, new UserComparator(SortType.desc));   
          StringBuilder builder = new StringBuilder();   
            for (int i = 0; i < contentList.size(); i++){   
             TimeAndContent timeContent = contentList.get(i);   
                builder.append(timeContent.getTime());   
                builder.append(" ");   
                builder.append(timeContent.getContent());   
                builder.append("\r");   
              }    
其中TimeAndContent timeContent = contentList.get(i); 报错
Type mismatch: cannot convert from String to ResortByDel.TimeAndContent,List里面明明有get()这个方法的呀?请问如何解决