Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2009, 09:32 PM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default Double [][]

Hi,

I have a collection returned from database which has 3 columns,
1st col - double value
2nd col - double value
3rd col - string

after iterating this collection i need to store these values in this format

double[][] data = new double[2][] ----- 1st and 2nd col values into this array
String[] series = new String[] ---- 3rd column into this array


in this format..

double[][] data = new double[2][];
data[0] = new double[] { 70, 250, 320, 265 };
data[1] = new double[]{ 85, 304, 201, 201 };
String[] series = new String[] { "Actual", "Budget" ,"Trade","Loan" };

i used toArray() for getting string array ..how can i do for double..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Double values andyetisay Java Basics 1 February 5th, 2008 12:15 AM
DOUBLE ENTRY K38AT Access 1 October 23rd, 2007 12:21 PM
Double Quotes langer123 Classic ASP Basics 2 March 16th, 2005 06:22 PM
double queue mafuka C++ Programming 1 April 6th, 2004 01:08 PM
Double-buffering katsarosj ASP.NET 1.0 and 1.1 Professional 2 March 2nd, 2004 08:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.