class ArraySort {
public static void main(String[]args) {
int[]x = new int[]{49,78,95,20,25,63,100};
sort(x);
for(int i=0;i<x.length;i++) {
System.out.println(x[i]);
}
}
public static void sort(int[]x) {
if(x==null||x.length==0) return ;
for(int i=0;i<x.length;i++) {
for(int j=i+1;j<x.length;j++) {
if(x[i]>x[j]) {
int temp = x[j];
x[j] = x[i];
x[i] = temp;
}
}
}
}
}
public static void main(String[]args) {
int[]x = new int[]{49,78,95,20,25,63,100};
sort(x);
for(int i=0;i<x.length;i++) {
System.out.println(x[i]);
}
}
public static void sort(int[]x) {
if(x==null||x.length==0) return ;
for(int i=0;i<x.length;i++) {
for(int j=i+1;j<x.length;j++) {
if(x[i]>x[j]) {
int temp = x[j];
x[j] = x[i];
x[i] = temp;
}
}
}
}
}