public class A... ... { public static void sort(String arg)......{ String[] args=arg.split(","); for(int i=0;i<args.length;i++)......{ for(int j=0;j<args.length-i-1;j++)......{ int a=Integer.parseInt(args[j]); int b=Integer.parseInt(args[j+1]); if(a>b)......{ a=a^b; b=a^b; a=a^b; } args[j]=String.valueOf(a); args[j+1]=String.valueOf(b); } } for(int i=0;i<9;i++)......{ System.out.print(args[i]+","); } } public static void main(String[] args)......{ sort("2,10,3,50,78,22,34,30,65"); } }