create a class method swap in the class mainprogram. it receives as its parameters an array and two indices inside it. the method swaps the numbers in these indices with each other. the basic structure of the method is:



Answer :