hi sir/madam,
public String edit(Student stud) {
student.stream().filter(e->e.getStudentId() == stud.getStudentId()).forEach(stud->{ e.setName(stud.getFirstName()); e.setName(stud.getLastName()); e.setDepartment(stud.getCourse()); e.setCountry(stud.getCountry()) }); return "updated";
Getting Error in line no-6 i.e. e.setCountry(stud.getCountry()) .pleasefind solution to my problem.
hi sir/madam, public String edit(Student stud) { student.stream().filter(e ->e.getStudentId() == stud.getStudentId()).fo
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
hi sir/madam, public String edit(Student stud) { student.stream().filter(e ->e.getStudentId() == stud.getStudentId()).fo
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!