Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/05/2015, 01:15
Avatar de Profesor_Falken
Profesor_Falken
 
Fecha de Ingreso: agosto-2014
Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 9 años, 8 meses
Puntos: 182
Respuesta: Problema con arrrayList

Buenas,

Eso te pasa porque estás sobreescribiendo siempre el mismo vector. Cámbialo así:

[.....]
int vector[] = null;
int i=0;
ArrayList<vectorCaracteristicas> temp=new ArrayList<>();
try {

while(rs.next())
{
vector = new int[8]
vector[0]=rs.getInt("col1");
[........]

Un saludo
__________________
If to err is human, then programmers are the most human of us