e.printStackTrace();
}
}
private ArrayList<Semester> setGrade(JSONArray gpas, JSONArray courses) {
try {
<BUG>ArrayList<Semester> arrayList = new ArrayList<Semester>();
int len = gpas.length();</BUG>
for (int i = 0; i < len; i++) {
JSONObject termObject = gpas.optJSONObject(i);
String year = termObject.getString("year");

e.printStackTrace();
}
}
private ArrayList<Semester> setGrade(JSONArray gpas, JSONArray courses) {
try {
ArrayList<Semester> arrayList = new ArrayList<Semester>();
if (gpas==null || courses==null) return  arrayList;
int len = gpas.length();
for (int i = 0; i < len; i++) {
JSONObject termObject = gpas.optJSONObject(i);
String year = termObject.getString("year");
