You need to enable JavaScript to view this Website
Login
Password
Login
Remember me
Forgot your password?
Snippets - Detail
All
Popular
Active
My
Iterate through hashmap
This loop iterates through a hashmap. very simple.
Language: Java
HashMap
<
String,Object
>
b
=
new
HashMap
<>
(
)
;
for
(
String
a
:
b.
keySet
(
)
)
{
b.
get
(
a
)
// Do something with the item
}
HashMap
Iterate
Java
search snippet
title
tag
search
browse categories
AS3
Bash
ColdFusion
Cpp
CSharp
Css
Delphi
Diff
Erlang
Groovy
Java
JavaFX
Javascript
Perl
Php
Plain
PowerShell
Python
Ruby
Scala
Sql
Vb
Xml
about us
donate
founder's blog
promote our project
terms of use
privacy statement
imprint & contact
share
bettercodes.org is released as free software without warranties under
GNU Affero GPL v3