Thanks guys,
i've solved my problem declaring the array of double few rows
below,after numberOfNumericColumns has been assigned a value and my
application runs correctly.
My problem is now that with an input file so made:
dsad 23,4 5.3 5.6 18,2 33,1
giauisa 27,4 15.3 25.6 8,2 3,1
i have this output
dsad [D@10b62c9
giauisa [D@82ba41
What's the problem in my code?
Can you help me please?
Thanks
Jussi Piitulainen - 14 Jun 2006 09:57 GMT
> Thanks guys,
> i've solved my problem declaring the array of double few rows
[quoted text clipped - 13 lines]
> Can you help me please?
> Thanks
You get that output when you try to print an array just like that:
class Foo {
public static void main(String [] _) {
double [] xs = new double [] { 3, 1, 14 };
System.out.println("xs " + xs);
}
}
A solution is to build the output string from the elements of the
array in a loop, like so:
StringBuilder sb = new StringBuilder("xs");
for (double x : xs) {
sb.append(' ');
sb.append(x);
}
System.out.println(sb);
If your Java version is old, use StringBuffer and the more general
loop syntax instead.
gbattine - 14 Jun 2006 10:19 GMT
Thanks too much for your help,but i'm not able to modify my code with
your suggests...
can you help me with code, can you show me how modify it?
Thanks too much for you availability and excuse me for my english and
my inexperience.
gbattine - 14 Jun 2006 12:08 GMT
Thanks guys....
i've solved my question.....
thank you for your helps..