Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Hashtableception

Name: Anonymous 2012-11-19 9:12

Hello, I come seeking the wisdom of the wise.

I have this hashtable:

Hashtable<Integer, Hashtable<Integer, Node>> table = new Hashtable<Integer, Hashtable<Integer, Node>>();

How would I add a node to that? The closest I can get by referencing the API and google is:

table.put(0, table.put(0, current));

Name: i hate java 2012-11-19 9:39

>>1

...
Node nodeA = new Node('shit');
Node nodeB = new Node('poop');
Hashtable<Integer, Node> node1 = new Hashtable<Integer, Node>();
node1.add(1, nodeA);
node1.add(2, nodeB);
Hashtable<Integer, Hashtable<Integer, Node>> table = new Hashtable<Integer, Hashtable<Integer, Node>>();

table.add(1001, node1);
...


Something like that. I don't have a java compiler installed to test this.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List