myeclipse不能识别List
package com.graduatestudent.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.graduatestudent.model.CommiteeMember;
import com.graduatestudent.model.LogInfo;
import com.graduatestudent.model.ReviewExpert;
import com.graduatestudent.model.Thesis;
import com.graduatestudent.model.Tutor;
import com.graduatestudent.jdbc.JDBC;
public class TutorDAO {
private static TutorDAO tutorDao=new TutorDAO();
private TutorDAO(){}
public static TutorDAO getInstance(){
return tutorDao;
}
public List<Thesis> getThesis(String thesisNo) {
String sql="select * from thesis";
System.out.println(sql);
List<Thesis> l= new ArrayList<Thesis>();
Thesis thesis=null;
ResultSet rs=JDBC.getInstance().executeSQL(sql);
try {
while(rs.next()){
thesis=new Thesis();
thesis.setThesisNo(rs.getString(1));
thesis.setDegreeApplicantNo(rs.getString(2));
thesis.setChineseTitle(rs.getString(3));
thesis.setEnglishTitle(rs.getString(4));
thesis.setChineseAbstract(rs.getString(5));
thesis.setEnglishAbstract(rs.getString(6));
thesis.setChineseKeywords(rs.getString(7));
thesis.setEnglishKeywords(rs.getString(8));
thesis.setCreativeIdea(rs.getString(9));
thesis.setFile(rs.getString(10));
l.add(thesis);
}
} catch (SQLException e) {
e.printStackTrace();
}
JDBC.getInstance().close();
return l;
}
}
请问我的Myeclipse为什么不能识别List啊!我已经设置了jdk版本了,网上找了N多个答案都不行,哪位高手可以解决一下,谢谢!