冒泡排序数组下标从1开始,做降序排序可以嘛?(语言-java)

public class Test {
public static void main(String[] args) {
int score[]={13,7,43,55,2};
for (int i = 0; i <score.length-1 ; i++) {
for (int j = 1; j <score.length-1-i ; j++) {
if (score[j]>score[j-1]){
int temp =score[j];
score [j]=score[j-1];
score[j-1]=temp;
}
}
}
for (int s:score) {
System.out.println(s);
}
}
}

可以