I am getting error in 9,10 and 15

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;
			}
	}
	
}

}

your code isnt taking output even. please share your code after saving it on ide.codingblocks.com

It is the code as in the video and it’s not working

@aa1
I was watching [crx-array-max] video. The code provided in the video isn’t working. Please give the correct code.

see this

this code that you shared you have omitted some part of your code so it makes it impossible to find the error .whenever you have to share your code in the future, please go to www.codingblocks.com ,paste your code, go to file->save and share the updated url here

@aa1
Please send the correct code for the given video .

i shared it with you above