给你一个数组和两个索引,交换下标为这两个索引的数字 import java.util.Arrays; public class Solution { public static void main(String args[]) { int[] Array = { 3, 2, 1, 4, 5 }; SwapArray testArray = new SwapArray(); testArray.swapIntegers(Array, 0, 2); } } class SwapArray { /**…