This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Why are you first converting it to an object array. Just Iterate over the double list and store it in the string array by calling toString() on the List Items.
Pramod P Deore wrote:Hi all I have ArrayList of type as <Double>. Now I want to convert this into String[]. But it throws java.lang.ArrayStoreException. As per docs
Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.
But still not clear Here is my code
This code is trying to put Double objects into a String[]. That's not allowed.