Estoy utilizando la clase Stack de java y quiero tener un array de 20 pilas.
Si hago esto:
Código Java:
Ver original
for(int i=0; i<20; i++) pilas[i] = new Stack<Integer>();
Me da un Pointer Null Exception.
Y esto me da error directamente:
Código Java:
Ver original
¿Cómo hay que ponerlo?
