Ken-Soft

Software and the World

Multi-linked List - Java

Posted under General Development, Java, Programming, Software Development by Kenny on Thursday 25 December 2008 at 8:57 pm
Bookmark and Share

This program is a multi-linked list where each node is also doubly connected (so that you can backtrack a followed path). Note, this is not a simple doubly linked list. each node of this list can connect to any number of other nodes in the list, including itself. This should be very interesting to build off of and tinker with.

The Jar file can be downloaded here: MLLDoubleLinked.jar
To run the Jar file open the command prompt, cd into the directory, then type:
java -jar MLLDoubleLinked.jar
That should give a display similar to the image below. The out shows a series of tests being ran as well as a final output of the MLL.
Multilinked list

The source is also bundled into the Jar file.

MLL.java - contains many of the main functions necessary in a multilinked list.

MLL.java

MLLNode.java

MLLTest.java

The Unit Test class is not executed in the Jar file. But it’s source is included.

MLLUnitTest.java


No Comments »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Copyright © 2009 www.Ken-Soft.com