/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
private static final HashMap
<String, String
> map
= new HashMap
<>(2, 0.8f
);
map.put("one", "one");
map.put("two", "two");
map.put("three", "three");
map.put("four", "four");
map.put("five", "five");
map.put("six", "six");
print();
map.put("seven", "seven");
map.remove("seven");
print();
}
private static void print() {
map.
forEach((id, name
) -> System.
out.
println(id
+ ": " + name
)); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKICAgIHByaXZhdGUgc3RhdGljIGZpbmFsIEhhc2hNYXA8U3RyaW5nLCBTdHJpbmc+IG1hcCA9IG5ldyBIYXNoTWFwPD4oMiwgMC44Zik7CgogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgdGhyb3dzIEV4Y2VwdGlvbiB7CiAgICAJbWFwLnB1dCgib25lIiwgIm9uZSIpOwogICAgICAgIG1hcC5wdXQoInR3byIsICJ0d28iKTsKICAgICAgICBtYXAucHV0KCJ0aHJlZSIsICJ0aHJlZSIpOwogICAgICAgIG1hcC5wdXQoImZvdXIiLCAiZm91ciIpOwogICAgICAgIG1hcC5wdXQoImZpdmUiLCAiZml2ZSIpOwogICAgICAgIG1hcC5wdXQoInNpeCIsICJzaXgiKTsKICAgICAgICBwcmludCgpOwogICAgICAgIG1hcC5wdXQoInNldmVuIiwgInNldmVuIik7CiAgICAgICAgbWFwLnJlbW92ZSgic2V2ZW4iKTsKICAgICAgICBwcmludCgpOwogICAgfQoKICAgIHByaXZhdGUgc3RhdGljIHZvaWQgcHJpbnQoKSB7CiAgICAgICAgbWFwLmZvckVhY2goKGlkLCBuYW1lKSAtPiBTeXN0ZW0ub3V0LnByaW50bG4oaWQgKyAiOiAiICsgbmFtZSkpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigpOwogICAgfQp9