public StringBuffer getCollegeInfo() { StringBuffer info = new StringBuffer(); info.append("\n colleges: \n"); List<College> colleges = SimpleDao.getCollegeDao(mContext).getAll(); if (colleges != null) { for (int i = 0; i < colleges.size(); i++) { College c = colleges.get(i); info.append(c.getCollegeId()).append(" ").append(c.getCollegeName()).append("\n"); } } return info; }
public College getCollege(int i) { College cl = new College(); cl.setCollegeId("" + i); cl.setCollegeName("College_name_" + i); return cl; }