Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Java plastic array definition
Java plastic array definition
Import java.util. *;

Public class test 1 {

Public static void main(String[] args) {

Scanner cin = new scanner (system. in);

int[]a = new int[ 10]; //Define an array with the length of 10 and name it: a.

int max 1 =- 1;

for(int I = 0; I<6; i++)

{//Enter 6 numbers.

a[I]= CIN . nextint();

}

for(int I = 0; I<6; i++)

{

max 1=Math.max(max 1,a[I]);

}

system . out . println(max 1);

}

}