package com.java.develep.four;
public class ArrayDemo06 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int score[]={100,50,78,98,72,86,45};
for(int i=1;i<score.length;i++)
{
for(int j=0;j<score.length;j++)
{
if(score[i]<score[j])
{
int temp=0;
temp=score[i];
score[i]=score[j];
score[j]=temp;
}
}
}
for(int i=0;i<score.length;i++)
{
System.out.print(score[i]+"\t");
}
}
}