Write a Java program to create a singly linked list of n nodes and display it in reverse order.
Sample Output:
Input the number of nodes:3
Input data for node 1:5 Input data for node 2:6 Input data for node 3:7
Data entered in the list are: 5 6 7 The list in reverse are: 7 6 5
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here