no message
parent
eafc41614c
commit
e7a8a8b50d
|
@ -2,6 +2,8 @@ package com;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description:
|
* @description:
|
||||||
|
@ -24,5 +26,29 @@ public class aa {
|
||||||
System.out.println("在来一次分支提交develop代码");
|
System.out.println("在来一次分支提交develop代码");
|
||||||
|
|
||||||
|
|
||||||
|
ArrayList<String> list = new ArrayList<>();
|
||||||
|
list.add("1");
|
||||||
|
list.add("2");
|
||||||
|
list.add("3");
|
||||||
|
list.add("4");
|
||||||
|
list.add("5");
|
||||||
|
list.add("6");
|
||||||
|
list.add("7");
|
||||||
|
list.add("8");
|
||||||
|
list.add("9");
|
||||||
|
list.add("10");
|
||||||
|
|
||||||
|
do {
|
||||||
|
Iterator<String> iterator = list.iterator();
|
||||||
|
while (iterator.hasNext()) {
|
||||||
|
String next = iterator.next();
|
||||||
|
System.out.println("next为-->"+next);
|
||||||
|
HashMap<String, String> map = new HashMap<>();
|
||||||
|
map.put(next, next);
|
||||||
|
System.out.println("map的K为-->"+map.keySet()+"v为"+map.values());
|
||||||
|
iterator.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
}while (!list.isEmpty());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue