当前位置:网站首页>Set ArrayList nested map set loop traversal
Set ArrayList nested map set loop traversal
2022-07-03 10:42:00 【Vue learning】
static void Demo2() {
HashMap<String,String> mp=new HashMap<>();
mp.put("zc", "adf");
mp.put("za", "aas");
mp.put("zb", "acc");
HashMap<String,String> mp2=new HashMap<>();
mp2.put("asd", "111");
mp2.put("222", "212");
mp2.put("333", "312");
ArrayList<HashMap<String,String>> array=new ArrayList<>();
array.add(mp);
array.add(mp2);
for(HashMap<String,String> mapkey:array) {
Set<String> s=mapkey.keySet();
for(String kk:s ) {
String v=mapkey.get(kk);
System.out.println(kk+"--"+v);
}
}
}Output results


边栏推荐
- 二分查找法
- The imitation of jd.com e-commerce project is coming
- Unity learning notes: personal learning project "crazy genius Edgar" error correction document
- Ind FHL first week
- [SQL] an article takes you to master the operations related to query and modification of SQL database
- [roast & brain hole] Some Thoughts on the bullet screen interactive game of Wei Shu Wu Three Kingdoms when visiting station B
- 大型电商项目-环境搭建
- Type de contenu « Application / X - www - form - urlencoded; Charset = utf - 8 'not supported
- Tensorflow - tensorflow Foundation
- 多层感知机(PyTorch)
猜你喜欢

Linear regression of introduction to deep learning (pytorch)

侯捷——STL源码剖析 笔记

Data classification: support vector machine

Ind wks first week

Stroke prediction: Bayesian

High imitation Netease cloud music

熵值法求权重

I really want to be a girl. The first step of programming is to wear women's clothes

深度学习入门之线性回归(PyTorch)

Hands on deep learning pytorch version exercise solution-3.3 simple implementation of linear regression
随机推荐
A complete mall system
High imitation wechat
多层感知机(PyTorch)
[combinatorial mathematics] pigeon nest principle (simple form examples of pigeon nest Principle 4 and 5)
Numpy quick start (II) -- Introduction to array (creation of array + basic operation of array)
Install yolov3 (Anaconda)
Tensorflow - tensorflow Foundation
缓存路由组件
Ut2014 supplementary learning notes
Unity学习笔记:个人学习项目《疯狂天才埃德加》纠错文档
安装yolov3(Anaconda)
深度学习入门之线性代数(PyTorch)
The story of a 30-year-old tester struggling, even lying flat is extravagant
Tensorflow—Image segmentation
Model evaluation and selection
Numpy realizes the classification of iris by perceptron
Leetcode刷题---832
Redis 笔记 01:入门篇
Tensorflow—Neural Style Transfer
[untitled]