Fórum Qual é a diferença de um array normal de um arrayList ?? #569005
19/07/2011
0
Felipe Nascimento
Curtir tópico
+ 1Post mais votado
19/07/2011
String[] array = new String[3];
ArrayList arrayList = new ArrayList();
Felipe Nascimento
Gostei + 2
Mais Posts
19/07/2011
Douglas Eric
Gostei + 1
19/07/2011
Felipe Nascimento
int[] ints = new int[20]; //Esse está certo ArrayList<String> strings = new ArrayList<String>(); //Também ArrayList<int> ints2 = new ArrayList<int>(); //Esse está errado //O correto é assim: ArrayList<Integer> ints3 = new ArrayList<Integer>();
Gostei + 0
20/07/2011
Felipe Nascimento
String[][] arraySimples = new String[10][10];
Gostei + 0
20/07/2011
Francisco Campos
ArrayList<ArrayList<String>> lists = new ArrayList<ArrayList<String>>(); lists.add(new ArrayList<String>());
ArrayList<String[]> arrays = new ArrayList<String[]>(); arrays.add(new String[5]);
Gostei + 0
20/07/2011
Douglas Eric
Gostei + 0
20/07/2011
Felipe Nascimento