File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how to convert double to double array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "how to convert double to double array" Watch "how to convert double to double array" New topic
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
    
  19

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to convert double to double array
 
Similar Threads
java.lang.reflect.Array.getLength(aA)
Two Threading access the different Synchronize method in a same object.
generate xml to java Bean
Initialize Array
Convert from integer to array of bytes