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));
synchornize(accounts[Math.min(from, to)])
{
synchorize(accounts[Math.max(from, to)])
{
}
}
public class LightBulb
{
private RGBColor colorOff;
private RGBColor colorOn;
private boolean on;
public LightBulb(int redOn, int greenOn, int blueOn, int redOff, int greenOff, int blueOff)
{
colorOff = new RGBColor(redOff, greenOff, blueOff);
colorOn = new RGBColor(redOn, greenOn, blueOn);
//...
}
//...
}