Plastic array search
I hope I can help you! Define an integer one-dimensional array, store 5 numbers, find out and output the maximum and minimum values in the array {

Public static void main(String[] args){

int array[]={4,5, 12,90,8 };

int max

int min

max = min = array[0];

for(int I = 1; I<5; i++){

if(array[I]& gt; Max)

max = array[I];

if(array[I]& lt; Minimum)

min = array[I];

}

System.out.println ("The largest number in the array is:"+max ");

System.out.println ("The smallest number in the array is"+min ");

}

}

Write a program, define an integer one-dimensional array, store five numbers, and then sort the output value import java.util.* from small to large; Common class array sorting {

Public static void main(String[] args){

int array[]={4,45,73,42,6 };

Arrays.sort (array); //The sort method of the //Arrays class is used to sort the elements in the array from small to large.

for(int I = 0; I < array. Length; i++){

system . out . print(array[I]+" ");

}

}

}