DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006

    array of linked lists

    Hey everyone, im doing an project for uni, and i have to make a dictionary, which is an array of linked list, where each element of the array is a linked list which stores all the words starting with a certain letter of the alphabet.
    the words for the dictionary are ment to be read in from a dictionary and then sorted in the array of linked lists. im still new at programming and cant understand how to make an array with each element consisting of a linked list. any help would be great! thx!

  2. #2
    Join Date
    Dec 2004
    San Bernardino County, California
    The elements held in the array are linked lists - the objects contained in an array can be a list - a Collection can hold Collections - this is an implementation similar to a multi-dimension array. Array elements 0-25 hold either a null node or a list of nodes holding words starting with the corresponding letter. If there are more words added, they link off the end of the particular list growing from the particular element node.

Similar Threads

  1. Linked Lists - hard exercise(help needed)
    By parallel in forum Java
    Replies: 6
    Last Post: 08-13-2013, 05:50 AM
  2. Dynamically allocating a 2d array
    By nnp in forum C++
    Replies: 6
    Last Post: 11-01-2005, 09:05 AM
  3. Problem with linked lists and iterators
    By white94cam in forum C++
    Replies: 2
    Last Post: 03-30-2005, 11:02 PM
  4. Dynamic linked lists !!!
    By Vidula in forum Java
    Replies: 0
    Last Post: 12-01-2000, 04:26 AM
  5. Replies: 1
    Last Post: 10-22-2000, 04:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.