I have just entered for this qs on Node intersections in Linked Lists topic. I was just starting ti write code.
I have just written,
{
Note current = l1;
return current;
}
I am getting this exception
Exception in thread “main” java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:864)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Main.buildList(Main.java:44)
at Main.main(Main.java:73)