java
2022-09-21 10:15
One is Map and one is List.
It's a completely different container type.
Map is a container that accesses elements with hashish (only key).
It is a data structure in the form of key:value
easily.
The List is a long, linear array of data structures that are generally associated with an array.
In other words, you asked me about the difference between the two, but it's a completely different container type than a difference.
If it's just a difference, Map can't put the same element (not the same key), but List can put more than one same element.
That is, List<Map<String, Object>>
is a list that contains multiple Map<String, Object>
.
© 2024 OneMinuteCode. All rights reserved.