package codingblLect;
import java.util.Scanner;
public class ArrayMax
{
static Scanner scn = new Scanner(System.in);
public static void main(String[] args)
{
int[] array = takeInput();
display(array);
System.out.println(maxInArray(array));
}
public static int[] takeInput()
{
public static void display(int[] arr)
{
public static int maxInArray(int[] arr)
{
int max = Integer.MIN_VALUE;
for(int i = 0; i< arr.length;i++)
{
if(arr[i] > max)
{
max = arr[i];
}
}
return max;
}
}
}
}