Associative array/Creation: Difference between revisions
Content added Content deleted
(Add Ecstasy example) |
|||
Line 2,801: | Line 2,801: | ||
}</syntaxhighlight> |
}</syntaxhighlight> |
||
Iterate over key, value pairs: |
Iterate over key, value pairs: |
||
<syntaxhighlight lang="java">for ((String |
<syntaxhighlight lang="java">for ((String key, Int value) : map) |
||
{ |
{ |
||
// the variables "key" and "value" are defined here |
// the variables "key" and "value" are defined here |