Note: Please write programs in Java.
1. Suppose there exists a generic Java class named Pair with type parameter T that stores two objects with get and set methods for each. Write the statements necessary to create an object of type Pair with String as its type parameter, and use the set methods to set the two strings, then the get methods to retrieve them for printing. Note that you do not need to write the air class itself.
2. Write a recursive function that receives an array of integers and a position as parameters and returns the count of odd numbers in the array. Let each recursive call consider the next integer in the array.
3. Write a recursive function that when passed a value n displays n (n-1) (n-2) (n-3) ... 0 ... (n-3) (n-2) (n-1) n for example, if passed 5 displays 5 4 3 2 1 0 1 2 3 4 5