Skip to content

Instantly share code, notes, and snippets.

@cbaldin
Created November 18, 2013 16:56
Show Gist options
  • Save cbaldin/7531241 to your computer and use it in GitHub Desktop.
Save cbaldin/7531241 to your computer and use it in GitHub Desktop.
Exemplo manipulação de collection
public static void main(String[] args) {
Collection<Object[]> minhaCollection = new ArrayList<Object[]>();
minhaCollection.add(new String[] {"Azul", "Amarelo", "Verde"});
minhaCollection.add(new Integer[] {1, 32, 123});
minhaCollection.add(new Double[] {1.1, 32.1, 123.1});
for (Object[] obj : minhaCollection) {
for (Object object : obj) {
System.out.println(object);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment