Skip to content

Instantly share code, notes, and snippets.

View jackblack369's full-sized avatar
🚀
get started

Dongwei jackblack369

🚀
get started
View GitHub Profile
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 19, 2024 11:28
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
------------------ Pre Java 8 ---------------------
Map<Employee, File> fileMap = new HashMap<Employee, File>();
int i =0;
for (Map.Entry<Employee, File> entry : map.entrySet()) {
i++;
// do something with i
}
------------------ Java 8 Lambda ---------------------
AtomicInteger counter = new AtomicInteger(0);