UndergroundScene Forums  

Welcome to the UndergroundScene Forums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!


Go Back   UndergroundScene Forums > SPECIAL AREAS > Information Technology
Register FAQ Site Areas Gig Guides Members Calendar Arcade Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 26th April 2005, 07:43 PM   #1 (permalink)
monk23785
Senior Member
 
monk23785's Avatar
 
Join Date: Feb 2003
Location: Dundee
Posts: 2,537
monk23785 is on a distinguished road
Java programming

Does anyone know how to embed an arraylist with another arraylist? I've thought abt the idea of creating the arraylists in different classes then importing from 1 class into another but this doesnt seem right to me anyone got any suggestions?
monk23785 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27th April 2005, 11:50 AM   #2 (permalink)
Red_Baron
Senior Member
 
Red_Baron's Avatar
 
Join Date: Apr 2002
Location: Dundee/Alyth hybrid
Posts: 1,501
Band: 15 Minutes
Red_Baron has a spectacular aura aboutRed_Baron has a spectacular aura aboutRed_Baron has a spectacular aura aboutRed_Baron has a spectacular aura aboutRed_Baron has a spectacular aura aboutRed_Baron has a spectacular aura about
Quote:
Originally Posted by monk23785
Does anyone know how to embed an arraylist with another arraylist? I've thought abt the idea of creating the arraylists in different classes then importing from 1 class into another but this doesnt seem right to me anyone got any suggestions?
How do you mean embed? Not sure what you're trying to do.

ArrayLists are similar Linked Lists in C++. Each List elemen is an object.

if you want to set an ArrayList element to be another ArrayList it can be done but is a bad model.

it would be bertter to have each Arraylist element containing a container object.

See below for a rough example

You could have an 'ArrayList ' of customer order stored in object 'custOrders'

each 'custOrders' item could be an 'orderItems' object.

OrderItems could either extend ArrayList or encapsulate an Array list depending on functionality required.

it's hard to suggest a solution as I don;t really know what the problem is

Post an example of what you're trying to do and I'll see if i can help
Red_Baron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27th April 2005, 01:15 PM   #3 (permalink)
monk23785
Senior Member
 
monk23785's Avatar
 
Join Date: Feb 2003
Location: Dundee
Posts: 2,537
monk23785 is on a distinguished road
i was really strugglin with it but i managed to get hold of one of my tutors today to help me with it, kinda got it figured now
monk23785 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 01:38 AM.


Powered by vBulletin
UndergroundScene.co.uk is bad-ass and under copyright

Content Relevant URLs by vBSEO 3.0.0 RC8