Considere a sentença a seguir. for(I i: new I[] {x-> x...
Próximas questões
Com base no mesmo assunto
Ano: 2018
Banca:
CS-UFG
Órgão:
SANEAGO - GO
Prova:
CS-UFG - 2018 - SANEAGO - GO - Analista de Sistemas |
Q873514
Programação
Considere a sentença a seguir.
for(I i: new I[] {x-> x+2, (x)->x*2 }) System.out.println(i.c(2));
Dada a interface I, interface I{int c(int i);}, essa sentença
for(I i: new I[] {x-> x+2, (x)->x*2 }) System.out.println(i.c(2));
Dada a interface I, interface I{int c(int i);}, essa sentença