Use intention to simplify for in j2k

#KT-7157 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-01-13 15:18:30 +03:00
parent ea3ba6f534
commit 128440b16f
5 changed files with 42 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import java.util.HashMap;
import java.util.Map;
class Test {
public static void main(String[] args) {
Map<String, String> resultMap = new HashMap<String, String>();
for (final Map.Entry<String, String> entry : resultMap.entrySet()) {
String key = entry.getKey();
String type = entry.getValue();
if (key.equals("myKey")) {
System.out.println(type);
}
}
}
}