Results 1 to 2 of 2
Thread: Array
- 02-04-2011, 07:00 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 8
- Rep Power
- 0
Array
public CD2(String title, String singer, double price, String category, String discount, String [] track,
String[]time,int numSong)
CD2 C = new CD2(arr[0], arr[1], Double.parseDouble(arr[2]), arr[3], arr[4],
arr[5],arr[6],Integer.parseInt(arr[7]));
Like in the code above, where i use Double.parseDouble(arr[2]) to change it to double, how to change the arr[5] to array?
- 02-04-2011, 07:22 AM #2
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
Similar Threads
-
Variable of an object in an array compared to an element of another array?
By asmodean in forum New To JavaReplies: 23Last Post: 09-07-2010, 08:12 PM -
Trying to make an array list // inserting an element to middle of array
By javanew in forum New To JavaReplies: 2Last Post: 09-06-2010, 01:03 AM -
create a 2d char array from a 1D string array
By jschmall12 in forum New To JavaReplies: 1Last Post: 04-27-2010, 09:01 PM -
Array length and printing out uninitialized array.
By nicolek808 in forum New To JavaReplies: 4Last Post: 09-10-2009, 09:12 AM -
How to add an integer to a array element and the store that backinto an array.
By Hannguoi in forum New To JavaReplies: 1Last Post: 03-31-2009, 06:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks