Separar Vector

1 resposta
A

Olá pessoal!!!

Sei q a dúvida é besta… mas é que to apanhando pra conseguir separar um vector assim:

[14.0000, 13.0000, 11.0000, 26.0000, 23.0000, 20.0000, 48.0000, 43.0000, 37.0000, 74.0000, 66.0000, 57.0000, 85.0000, 77.0000, 68.0000, 136.0000, 125.0000, 110.0000]

em um vector ou array assim:

14.0000, 13.0000, 11.0000 26.0000, 23.0000, 20.0000 48.0000, 43.0000, 37.0000 74.0000, 66.0000, 57.0000 85.0000, 77.0000, 68.0000 136.0000, 125.0000, 110.0000

Será que alguém pode me ajudar?? :oops:

Obrigada

1 Resposta

A

Ta bom pessoal!!! Já consegui!!!

Object[][] aMatrix = new Object[rows.size() / getColumnCount()][getColumnCount()]; int count =0; while (count < getRowCount()) { Iterator<Object> it = getRows().iterator(); while (it.hasNext()) { for (int i = 0; i < aMatrix.length; i++) { for (int j = 0; j < aMatrix[i].length; j++) { aMatrix[i][j] = it.next(); } } } count++; }

:stuck_out_tongue:

Criado 10 de junho de 2005
Ultima resposta 10 de jun. de 2005
Respostas 1
Participantes 1