giovy8205 giovy8205 21-12-2022 Computers and Technology Answered 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: