int start = Math.min(indexMin, indexMax) + 1;
int end = Math.max(indexMin, indexMax);
int len = end - start;
if (len <= 1)
{
return;
}
System.out.println(Arrays.toString(IntegerArra));
for (int i = 0; i < len / 2; i++)
{
int leftInd = start + i;
int rightInd = end - i - 1;
int temp = IntegerArra[leftInd];
IntegerArra[leftInd] = IntegerArra[rightInd];
IntegerArra[rightInd] = temp;
}
System.out.println(Arrays.toString(IntegerArra));