Create a Stack class based on java.util.LinkedList class. Your Stack class should have a push(), pop(),…

Create a Stack class based on java.util.LinkedList
class. Your Stack class should have a push(), pop(), peek(), and
isEmpy() methods.
Create a new Java Application that has the following methods.
Write a method reverseChar() to print a sentence in reverse
order. Use a Stack to reverse each character. Example: if the user
enters a sentence “ABC DEFG”, the program will display “GFED
CBA”
Write a method reverseWord() to print a sentence reverse order.
Use a Stack to reverse each word. Example: If the user enters a
sentence “Live and Let Live” the program will display “Live Let and
Live”
Write a method to randomly generate a number of elements between
two given values and save them in a stack.
Write a method to print a stack (10 elements per line). The
original stack should remain as is after the print.
Write a method to return the number of elements on the stack
(without changing the stack).
Write a method to search for a value in a stack. The stack
should remain the same after the search is finished.
Write a method to print the second element of the stack and
leave the original stack unchanged
Write a method to count the number of elements in a stack that
are larger than a given value and leave the original stack
unchanged.
Write a method peekLowestElement() to return the smallest
element. The original stack should remain unchanged.
10. Write a method peekHighestElement() to return the largest
element. The original stack should remain unchanged.
11. Write a method to return the inverse a stack. The original
stack should remain unchanged.
12. Write a method to make a copy of a stack into another stack and
return it. The original stack should remain
unchanged.
In the main method test all your methods including the following
cases:
Create 2 Stacks S1, S2
Insert 20 integers between 20 and 60 (do not insert duplicates)
into S1
Insert 30 integers between 10 and 80 (do not insert duplicates)
into S2.
Test all your methods using S1 and S2