Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to call this Method from Dynamic List?

$
0
0
	public void insertAfter(DynamicNode p, Object x) {
		if (p == null) {
			System.out.println("void insertion");
			System.exit(1);
		}
		DynamicNode q = new DynamicNode(x, p.getNext());
		p.setNext(q);
	}


DynamicList l = new DynamicList();
l.insertAfter(?, 100); <<<< What do I put in the pararemeter to make it work correctly?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>