| Author |
how to convert double to double array
|
Eung maeng
Ranch Hand
Joined: Feb 10, 2002
Posts: 68
|
|
how to convert double to double array Does anyone answer to me? e.g. double aa = 12.0; double[] bb = new bb[5]; for(int i=0; i<bb.length;i++){ bb[i]= aa ??? } thanks
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16692
|
|
A double holds a single value. A double array could hold many values. What do you mean by convert? Or do you mean simply assign them all to the same value, like so? Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Eung maeng
Ranch Hand
Joined: Feb 10, 2002
Posts: 68
|
|
thanks, I found what's wrong in coding. I used Double[] rather than double[]. anyway,thanks for your comment. This forum is good for me.
|
 |
 |
|
|
subject: how to convert double to double array
|
|
|