In JAVA:
Task 1
Write a program where you create an ArrayList object that can store numbers. Show how you can add a number to the ArrayList, remove a number from the ArrayList, replace a number in the ArrayList, insert a number in a specific location in the ArrayList, and display all the numbers in the ArrayList.
Task 2
Create a class named TextProcessing which has the following methods—
(1) getWordsNumber(): This method accepts a string (few sentences long) as an argument and returns the number of words it contains.
(2) getVowelsNumber(): This method accepts a string (few sentences long) as an argument and returns the number of vowels it contains.
(3) displayBackwardString(): This method accepts a string (few sentences long) as an argument and displays its contents backward.
Then write a demo class to work with the TextProcessing class.