I want to know the difference between list map and map.

Asked 2 years ago, Updated 2 years ago, 24 views


java
					

2022-09-21 10:15

1 Answers

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>.


2022-09-21 10:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.