String List

2 respostas
Algebra

Eu tenho um string list que tem que receber outros 2 String Lists, mas não quero ficar fazer for e add

como é que faço

tem algum outro método para isso

2 Respostas

E

Tem - olhar o Javadoc

http://download.oracle.com/javase/6/docs/api/java/util/Collection.html#addAll(java.util.Collection)

Hebert_Coelho

Vc poderia utilizar a classe List?

List<String> lista = new ArrayList<String>(); lista.addAll(listaRetoranda());Ou existe alguma restrição?

Criado 4 de setembro de 2010
Ultima resposta 4 de set. de 2010
Respostas 2
Participantes 3