当前位置:网站首页>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


边栏推荐
- 6、 Data definition language of MySQL (1)
- 二分查找法
- 大型电商项目-环境搭建
- The imitation of jd.com e-commerce project is coming
- Raspberry pie 4B deploys lnmp+tor and builds a website on dark web
- Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported
- Automatic derivation of introduction to deep learning (pytoch)
- Training effects of different data sets (yolov5)
- Weight decay (pytorch)
- 八、MySQL之事务控制语言
猜你喜欢

【SQL】一篇带你掌握SQL数据库的查询与修改相关操作

Handwritten digit recognition: CNN alexnet

Numpy quick start (II) -- Introduction to array (creation of array + basic operation of array)
![[combinatorial mathematics] pigeon's nest principle (simple form of pigeon's nest principle | simple form examples of pigeon's nest principle 1, 2, 3)](/img/77/fcb4f9739a5171ee58771d041f4d72.jpg)
[combinatorial mathematics] pigeon's nest principle (simple form of pigeon's nest principle | simple form examples of pigeon's nest principle 1, 2, 3)

ThreadLocal principle and usage scenario

神经网络入门之预备知识(PyTorch)

Knowledge map reasoning -- hybrid neural network and distributed representation reasoning

Simple real-time gesture recognition based on OpenCV (including code)

High imitation bosom friend manke comic app

深度学习入门之线性回归(PyTorch)
随机推荐
Leetcode刷题---367
[untitled]
Leetcode刷题---1
Unity group engineering practice project "the strongest takeaway" planning case & error correction document
FileNotFoundError: Could not find module ‘... dll‘ (or one of its dependencies).
Leetcode skimming ---278
ECMAScript -- "ES6 syntax specification # Day1
Ind yff first week
Mysql5.7 installation and configuration tutorial (Graphic ultra detailed version)
The story of a 30-year-old tester struggling, even lying flat is extravagant
Realize an online examination system from zero
Raspberry pie 4B installs yolov5 to achieve real-time target detection
Free online markdown to write a good resume
Several problems encountered in installing MySQL under MAC system
2021-09-22
Numpy realizes the classification of iris by perceptron
Matrix calculation of Neural Network Introduction (pytoch)
Hands on deep learning pytorch version exercise solution - 2.6 probability
Numpy quick start (II) -- Introduction to array (creation of array + basic operation of array)
Leetcode skimming ---832