alcatrazbr
11/24/2016 - 6:30 PM

foreach HashMap 2

foreach HashMap 2

String[] modalidades = new String[precos.size()];
int i = 0;
for (Map.Entry<String, Preco> entry : precos.entrySet()) {
    Preco p = entry.getValue();
    modalidades[i] = p.getNome();
    i++;
}