I am learning java. I wrote the following code but I am getting this error \"cant make a static reference to a non static input field\" in Arrayfunction(), when I try to take in
Scanner is not defined as static therefore is in the wrong scope
Either create the Scanner instance inside Arrayfunction or create your scanner with
Arrayfunction
private static Scanner input= new Scanner(System.in);