当前位置:网站首页>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
边栏推荐
- Binary search method
- 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
- Ut2012 learning notes
- Leetcode刷题---367
- Leetcode skimming ---189
- 【SQL】一篇带你掌握SQL数据库的查询与修改相关操作
- 安装yolov3(Anaconda)
- Numpy Foundation
猜你喜欢
An open source OA office automation system
Out of the box high color background system
Ind wks first week
Drop out (pytoch)
Ut2014 supplementary learning notes
神经网络入门之预备知识(PyTorch)
GAOFAN Weibo app
Hands on deep learning pytorch version exercise solution - 2.3 linear algebra
ThreadLocal原理及使用场景
Detailed cross validation and grid search -- sklearn implementation
随机推荐
Ind kwf first week
Adaptive Propagation Graph Convolutional Network
Hands on deep learning pytorch version exercise solution - 2.3 linear algebra
Leetcode刷题---283
Knowledge map reasoning -- hybrid neural network and distributed representation reasoning
Hands on deep learning pytorch version exercise solution-3.3 simple implementation of linear regression
Simple real-time gesture recognition based on OpenCV (including code)
权重衰退(PyTorch)
extern关键字
Matrix calculation of Neural Network Introduction (pytoch)
Jetson TX2 刷机
Unity learning notes: online game pixel Adventure 1 learning process & error correction experience
8、 Transaction control language of MySQL
Several problems encountered in installing MySQL under MAC system
Multi-Task Feature Learning for Knowledge Graph Enhanced Recommendation
Leetcode skimming ---263
Leetcode skimming ---189
Practical part: conversion of Oracle Database Standard Edition (SE) to Enterprise Edition (EE)
Leetcode刷题---977
mysql5.7安装和配置教程(图文超详细版)