Intersection Point of 2 Linked List-Java

I am getting this error. Please help.

try to test it with input as
1 2 3 -1
4 2 3 -1

not the one given

1 Like