I have a Map like Map<Long, Long> serials
I want to iterate it in a for loop.
My code is
for (Map.Entry<Long, Long> serial : serials.entrySet()) {
custOrder = get(serial.getKey());
}
Where the get()
method take a Long.
It's compile with no error. But in run time serial.getKey()
returns a String.