I failed to solve this task. 'I have a List<Car>
where a car is an object with carNumber
and kmPassed
props. Return a Car
with max kmPassed
value.'
I know how to find min/max in array but how to find it in Car
object?
Asked
Active
Viewed 118 times
0

Ihor Patsian
- 1,288
- 2
- 15
- 25

JohnPix
- 1,595
- 21
- 44
-
Post what you have tried so far. – MC Emperor Nov 06 '19 at 06:50
-
1Great time to read about [Comparable](https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html) Interface – Ashvin Sharma Nov 06 '19 at 06:54