Please help me optimize this bubble sort code. It's working fine otherwise.
int[] randomIntegers = {2,3,1,1,4,5,8,-2,0};
for(int i=0;i<randomIntegers.length;i++){
for(int j=i;j<(randomIntegers.length-1);j++){
if(randomIntegers[i]>randomIntegers[j+1]){
randomIntegers[i] += randomIntegers[j+1];
randomIntegers[j+1] = randomIntegers[i] - randomIntegers[j+1];
randomIntegers[i] = randomIntegers[i] - randomIntegers[j+1];
}
}
}
for(int i:randomIntegers){
System.out.print(i+",");
}