I need help with this one method

the link is located at:http://www.cs.arizona.edu/classes/cs127b/spring07/projects/10-OrderedMap.htmwith the method valuesAsList(), is this method different with keysAsList() which I use in order traversal of the BST?
[268 byte] By [aditya15417a] at [2007-11-27 1:01:31]
# 1
You'll have better luck if you post the relevant info (not the entire assignment) here, rather than expecting people to follow a link.
jverda at 2007-7-11 23:36:25 > top of Java-index,Java Essentials,Java Programming...
# 2

/ Return all values in this OrderedMap as an ArrayList of Vs.

// The first value in the ArrayList (at get(0)) must be the one with

// the key that precedes all other keys. The last element in the

// ArrayList must be the one with the key that follows all other keys.

public ArrayList<V> valuesAsList()

so this is what I basically want to do. To put it in a simple way and more quick, I have to build a map node using binary search tree and in every of that node consists of a key and a value. The value is actually a bank account object. That's just an overview, if you want to see all the general assignment then just click on the link that I have provided

aditya15417a at 2007-7-11 23:36:25 > top of Java-index,Java Essentials,Java Programming...
# 3

No, I don't want to see your assignment. If you can't post some code and ask a sensible question about it then please get lost. You have been mooching around these forums for the last week using the "stone soup" method of getting people to do your homework bit by bit and it's getting really tiresome.

DrClapa at 2007-7-11 23:36:25 > top of Java-index,Java Essentials,Java Programming...
# 4
He / she's also cross-posting on [url= http://www.codeguru.com/forum/showthread.php?t=420637]codeguru[/url]. If you can't put any of your own effort into your own "work", you'll never learn to be a programmer (or a success in life for that matter).
petes1234a at 2007-7-11 23:36:25 > top of Java-index,Java Essentials,Java Programming...
# 5

sorry guys but so far this is my code:

// Return all values in this OrderedMap as an ArrayList of Vs.

// The first value in the ArrayList (at get(0)) must be the one with

// the key that precedes all other keys. The last element in the

// ArrayList must be the one with the key that follows all other keys.

public ArrayList<V> valuesAsList() {

ArrayList<V> temp = new ArrayList<V>();

MapNode t = root;

valuesAsList(temp, t);

return temp;

}

private void valuesAsList(ArrayList<V> t, MapNode x) {

t.add(x.value);

valuesAsList(t, x.left);

valuesAsList(t, x.right);

}

I don't know whether this does what the assignments want, it compiles though

aditya15417a at 2007-7-11 23:36:25 > top of Java-index,Java Essentials,Java Programming...