Code:
import java.io.*;
import java.util.Scanner;

class num
{
    public static void main(String args[])
	{ 
           
            
              for (int i=1;i<=10;i++)
          {
		Scanner input = new Scanner(System.in);
                 int array[]=new int[10]; 
		int array[i] = input.nextInt();
	
          }
        }
    
    void Descending (int array[])
    {
       for(int j=8;j>=0;j--);
       {
           for(int y=0;y<=x;y++)     
           {
               if (array[y]>array[y+1]);
               temp= array[y];
               array[y]=array[y+1];
               array[y+1]=temp;
           }     
       }
    }
        
    
    
    
    
    void Ascending (int array[])
     {
       for(int j=8;j>=0;j--);
       {
          for(int y=0;y<=x;y++)
               
           {
             if (array[y]<array[y+1]);
                 temp= array[y];
               array[y]=array[y+1];
               array[y+1]=temp;
           }
       }
    }
}

Last edited by shabbir; 14Mar2011 at 07:15.. Reason: Code blocks