适用于初级的学者public class MyJava2 { public static void main(String args[]){ int m; int a[] = {10,4,3,6,2}; for(int i = 0; i a[j+1]){ m = a[j]; a[j]=a[j+1]; a[j+1]=m; } } } for (int n = 0; n < a.length;