Question: 1. Write a method called switch Them that accepts two integer arrays as parameters and switches the contents of the arrays. Take into account that the arrays may be of different sizes.
2. Describe a program for which you would use the Array List class instead of arrays. Describe a program for which you would use arrays instead of the Array List class. Explain your choices.
3.What would happen if, in the Dots program, we did not provide empty definitions for one or more of the unused mouse events?