1. Write a method which does the following:
a. Ask the user to enter a size of array between 2 to 10.
b. Based on the size entered, write a loop which asks the user to fill values into an integer array. Print the array contents using Arrays.toString().
c. For this integer array, write a logic that returns true if there exists a place to split the array such that the sum of the numbers on one side is equal to the sum of the numbers on the other. Otherwise return false.
d. Examples:
If the array is {1, 1, 1, 2, 1} then return true.
If the array is {2, 1, 1, 2, 1} then return false.
If the array is {10, 10} then return true.
2. Implement a mergeUniqueValues(arr1, arr2) method. When passed two arrays of strings, it will return an array containing the strings that appear in either or both arrays in sorted order. And the returned array should have no duplicates.
For example, if you have two string arrays:
arr1: {"Bear", "Elephant","Fox"}
arr2: {"Panda", "Elephant","Eagle"}
Calling mergeUniqueValues(arr1, arr2) should return a merged and sorted array like:
Bear, Eagle, Elephant, Fox, Panda
3. Open Ended Problem:
Write two or more classes which covers the following concepts:
Because there are two or more classes, only one class should contain the "main()" method and inside that you should create objects of other classes and call their methods.