já tentou vetor[i] = número?
att.
--
Carlos Eduardo Simões Pelegrin
Em 1 de novembro de 2013 11:30, Claudio . <listas.arquivo@gmail.com> escreveu:
Olá.--Estou montando um gráfico, e os dados/valores devem preencher uma array list tipo : List<double[]> x = new ArrayList<double[]>();Se eu fosse colocar diretamente os valores assim: x.add(new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }); funciona ok
Porém eu tenho que ler estes valor em um arquivo tx, e estou apanhando para converte-los, alguém poderia me mostrar o cainho?Tentei algo assim:linha = buffer.readLine()) // leio cada linha, coloco em uma variavel tipo stringstr = new String[] {linha}; //depois coloco em um array String str[]bx[c]=Integer.parseInt(str[n] + str[n+1] + str[n+2] + str[n+3]);// converto as strings que me interessam em inteiros
Estes valores eu gostaria de preencher a x.add(new double[] { -- AQUI--- })Bom devo estar fazendo algo bem errado, se alguém puder dar uma força.obrigado.Cláudio
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário