package wode; import java.util.Scanner; public class Paixu { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int i ,j,t; int []a={12,34,434,45,30}; for(j=0;j<a.length-1;j++) for(i=0;i<a.length-1-j;i++) if(a[i]>a[i+1]){ t=a[i]; a[i]=a[i+1]; a[i+1]=t; } for(int x:a){ System.out.print("\t"+x); } } }