import java.util.*;
class Main {
public static void main
(String[] args
) { Map
<String, Alimento
> mapalimentos
= new HashMap
<>(); mapalimentos.put("Maçã", new Alimento(50, 10));
mapalimentos.put("Melancia", new Alimento(30, 20));
}
}
class Alimento {
public Alimento(int calorias, int proteinas) {
Calorias = calorias;
Proteinas = proteinas;
}
int Calorias;
int Proteinas;
}
//https://pt.stackoverflow.com/q/257120/101
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgTWFpbiB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgewoJCU1hcDxTdHJpbmcsIEFsaW1lbnRvPiBtYXBhbGltZW50b3MgPSBuZXcgSGFzaE1hcDw+KCk7CgkgICAgbWFwYWxpbWVudG9zLnB1dCgiTWHDp8OjIiwgbmV3IEFsaW1lbnRvKDUwLCAxMCkpOwoJICAgIG1hcGFsaW1lbnRvcy5wdXQoIk1lbGFuY2lhIiwgbmV3IEFsaW1lbnRvKDMwLCAyMCkpOwoJfQp9CgpjbGFzcyBBbGltZW50byB7CiAgICBwdWJsaWMgQWxpbWVudG8oaW50IGNhbG9yaWFzLCBpbnQgcHJvdGVpbmFzKSB7CiAgICAgICAgQ2Fsb3JpYXMgPSBjYWxvcmlhczsKICAgICAgICBQcm90ZWluYXMgPSBwcm90ZWluYXM7CiAgICB9CiAgICBpbnQgQ2Fsb3JpYXM7CiAgICBpbnQgUHJvdGVpbmFzOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yNTcxMjAvMTAx