Question: 1. Write a java program to generate a random number between 10 and 25, which will be used as the number of elements in a
1. Write a java program to generate a random number between 10 and 25, which will be used as the number of elements in a linked list. Then fill this linked list with randomly generated numbers between 1 and 100. For example, if you generate a number that is 14, then the linked list will have 14 elements ranging from 1 to 100.
2. Write a recursive method to return the size of the linked list WITHOUT using the size() function from the java library.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
