Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Output shaping array java
Output shaping array java
Common class test {

Public static void main (strinargs []) {

int score[]= null;

score = new int[ 10];

for(int I = 0; I <

Fraction. Length; i++){

Score [i] = i

}

int max,min,sum

max = score[0];

min = score[0];

sum = 0;

for(int I = 0; I <

Fraction. Length; i++){

if(max & lt;

Score [i]){

maximum

= score[I];

}

if(min & gt;

Score [i]){

department

= score[I];

}

sum +=

Score [I];

}

System.out.println("max = " + max +

" min = " + min + " sum = " +

sum);