andy6804tw
4/12/2017 - 10:46 AM

123.java

import java.util.*;   
   
public class Main {   
   
  public static void main(String[] args) {   
       Scanner scn = new Scanner(System.in);   
       int n=scn.nextInt();
       while(n--!=0){
    	   float ary[]=new float[10];
    	   for(int i=0;i<10;i++)
    		   ary[i]=scn.nextFloat();
    	   Arrays.sort(arr);
    	   System.out.printf("maximum:%.2f\n",ary[9]);
    	   System.out.printf("minimum:%.2f\n",ary[0]);
       }
  }   
}