¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
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
3 Respuestas
+ 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"
+ 3
You're welcome!
Happy Coding 👍
+ 1
Wah..thanks a lot..i don't know why i missed this..really appreciated