-3

我有两个值对 - 它们可以转换为您放置键、值的地图或放置具有“地图”世界中的字段为键和值的对象的列表。

从设计的角度来看,哪个更好?

谢谢你,罗克丝娜

4

1 回答 1

0

The best bet here is Map.Cause List doesn't carry the key value pairs.

Using Map only you can get the value by key when ever you need..other wise(list) you need to bare more lines of code.

And finally It depends on you context.

于 2013-06-19T12:26:03.367 回答