0

My code is printing no output to the screen..any help why this will be greatly appreciated

Iam trying to print cars from a list of cars that is based on the condition that i have provided..in this case all the cars that have "new car" as the value of the carCondition field of the object..surprising its working on all other fields that i provide conditions for but doesnt seem to work here..thanks in advance https://code.sololearn.com/cdS7TAEg7ucG/?ref=app https://code.sololearn.com/cdS7TAEg7ucG/?ref=app

7th Dec 2020, 7:25 AM
Allan And Lifted Hands
Allan And Lifted Hands - avatar
3 Réponses
+ 2
Allan And Lifted Hands Just a typo. At line 24 you wrote "new car" It'll be "new Car" 24. Cars.printCars(cars, (Cars c) -> c.carCondition.equals("new car")); |---> "new Car"
7th Dec 2020, 8:24 AM
Minho
Minho - avatar
+ 3
You're welcome! Happy Coding 👍
7th Dec 2020, 8:54 AM
Minho
Minho - avatar
+ 1
Wah..thanks a lot..i don't know why i missed this..really appreciated
7th Dec 2020, 8:50 AM
Allan And Lifted Hands
Allan And Lifted Hands - avatar