'Get a list with screening
In general, I have a HashMap with values.
{ID = 1, Car Make = z, Model = r, Speed = 6 km/h}
{ID = 2, Car Make = a, Model = t, Speed = 2 km/h}
{ID = 3, Car Make = d, Model = t, Speed = 4 km/h}
{ID = 4, Car Make = k, Model = d, Speed = 1 km/h}
I want to get a list in which there will be entities whose Speed values are greater than the specified numeric parameter. I do not understand the moment exactly how to get, say, these two lines if I enter the number 3 as a parameter.
{ID = 1, Car Make = z, Model = r, Speed = 6 km/h}
{ID = 3, Car Make = d, Model = t, Speed = 4 km/h}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
