Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 nested array in java, assign a single array into another array

views
     
chris_c28
post Aug 28 2008, 10:06 PM

Enthusiast
*****
Senior Member
882 posts

Joined: Jan 2005


Not sure if I understand your question correctly, but I'll try.
Can't you just iterate through your months and assign your day array into each? When you do a simple assignment, you're only passing the reference, so it's a cheap operation.

Also, use ArrayList if possible. Dynamic resizing and generics support.

This post has been edited by chris_c28: Aug 28 2008, 10:07 PM

 

Change to:
| Lo-Fi Version
0.0128sec    0.72    6 queries    GZIP Disabled
Time is now: 22nd December 2025 - 04:59 AM