Create a Java program class named LoopDemo with the following specifications:
a. The class must have a method called forDemo that will demonstrate the use of a for loop to print all odd numbers between 1 and 20 (both inclusive)
b. The class must have a method called whilePretestDemo that will demonstrate the use of a while loop of the pre-test type to print all odd numbers between 1 and 20 (both inclusive) - points
c. The class must have a method called whilePostTestDemo that will demonstrate the use of a while loop of the post-test type to print all odd numbers between 1 and 20 (both inclusive) -points
d. Exercise these methods from the main method by calling them -