I’m working on my coursework and came up with this situation. Here’s my code. public static ArrayList<Student> checkPresent(String unitID, String week){ int present = 0; ArrayList<Student> studentDetails = Student.getStudentDetails(); ArrayList<AttendanceLog> pickedList = AttendanceLog.pickFromAttendanceLog(unitID, week); for(Student student : studentDetails){ student.setPresent("N"); for(AttendanceLog attendance : pickedList){ if(student.getStudentNo().equals(attendance.getStudentID())){ student.setPresent("Y"); present++; } } } return studentDetails; } I have only […]
The post Return an ArrayList and int value from a single method. Is it Possible? appeared first on BlogoSfera.