Tuesday, May 17, 2011
Sort of single dimension array
public class arraydemosortsingle
{
public static void sort(int []x)
{
int i;
for( i=0;i
=0;i--)
{
System.out.println(x[i]);
}
}
public static void main(String[] args)
{
sort(new int[] {44,22,77,55,22});
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment