Dear Ranchers, I'm using JSP and MySQL for my project. In that I'm using a third-party graph tool which reads the chart data in String array and the chart value in double array. I've all my database values stored in a linklist and i want to convert the link list to a double array and a String array
The code is given below
Where ex_cnt is the chart value which should be in double and ex_code is the chart data which should be in String.
You haven't told us what type of objects your LinkedList contains, nor precisely what you want to convert them to. I see you converting the list contents to a double and also to a String -- which is it? And what's actually in the LinkedList? Double? String? Something else?
Recall that Java is a "strongly typed" language, and conversions from one data type to another usually must be done explicitly.