write a code to filter out loans with incomplete status using java 8 features.
AnswerBot
1y
Code to filter out loans with incomplete status using Java 8 features.
Use stream() method to convert the list of loans into a stream
Use filter() method to filter out loans with incomplete status
Use co...read more
Rajat Kumar
6mo
ListcompleteLoan= loanslist.stream().filter(e->e.loanstatus=="incomplete";).collect(Collectors.toList());
Anonymous
1mo
loanslist.stream()
.filter(loan::getStatus().equal("incomplete").collect(collectors.Tolist));
Onkar Dantakale
5mo
Here you should use getLoanStatus.
James priskilla
1y
In Java means totally it is maths .
Maths means integer two integer, subtraction multiplication swap one ,swap two
Maths are arrange into maps filter these is Java we all doing these in note pad word pa...read more
Add answer anonymously...
Top Infosys Java Developer interview questions & answers
Popular interview questions of Java Developer
Top HR questions asked in Infosys Java Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app