Write a program SelectionSortDemo.java that demonstrates the selection sort algorithm. That program should include:
.sort() that takes an int[] array as a parameter and sorts it using selection sort. The sort method uses the next two methods as part of its operation..swap() method that takes an array and two indexes as parameters, and exchanges the values at those two locations in the array.getIndexOfSmallest() that takes an array and a lower and upper index as parameters, and finds and returns the index located between those two values that has the smallest integer in it.main method that sets up an int[] array and calls the sort() method on that array, then prints it out to demonstrate that the values have been sorted.