What code to find Max value and min value in this Array... ? Help me Please..?
import java.util.Scanner;
import java.lang.Math;
class Work4_1
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
int[] value=new int[10];
int max,min;
for(int i=1;i<value.length;i++)
{
System.out.print("Enter Value : ");
value[i]=input.nextInt();
}
Math.max(value[i]); <<< It's True...?
Math.min(value[i]); <<< It's True...?
}
}
Thanks