Sorry for posting here, badly I need help from expert like you!
Can any one explain why my codes does works properly, I mean result what I am suppose to get, it not getting through this method. This is just two method. from my class "MainClass.java".
That was the difference method which will take two list head1, head2
lets say: head1 lis: 3 ; 6 ; 9 ; 10
head2 list is: 5; 6; 10
Answer should be: 3->9, can any one correct me!
Here is another method:
lets say: head1 lis: 3 -> 6 -> 9 -> 10
head2 list is: 5-> 6-> 10
Answer should be: 3,5,6,9,10, can any one correct me!
Note that IntNode class contain:
This is how I was trying to
test:
seems like program output partly not what I am expecting result.
[ April 27, 2007: Message edited by: pot tom ]