Back to project page RiceCourses.
The source code is released under:
MIT License
If you think the Android project RiceCourses listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.kevinlin.ricecourses; //from www. ja v a 2 s . co m /** * Created by Kevin Lin on 7/28/2014. */ public class Course implements Comparable<Course>{ private String courseNumber; private String courseCode; private String courseLength; private String courseTitle; private String courseInstructor; private String courseTime; private String credits; public Course(String courseNumber, String courseCode, String courseLength, String courseTitle, String courseInstructor, String courseTime, String credits) { this.courseNumber = courseNumber; this.courseCode = courseCode; this.courseLength = courseLength; this.courseTitle = courseTitle; this.courseInstructor = courseInstructor; this.courseTime = courseTime; this.credits = credits; } public String getCourseNumber() { return courseNumber; } public String getCourseCode() { return courseCode; } public String getCourseLength() { return courseLength; } public String getCourseTitle() { return courseTitle; } public String getCourseInstructor() { return courseInstructor; } public String getCourseTime() { return courseTime; } public String getCredits() { return credits; } public String toString() { return getCourseTitle(); } public int compareTo(Course c) { return getCourseTitle().compareTo(c.getCourseTitle()); } }