I just got introduced to methods and functions, and I have to use them to find the max of two integers entered by the user. Below is my code and the error I get is "cannot find symbol - variable maximum". Please any help on what I forgot to include?
import java.util.Scanner; public class program4e_2 { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Student 1, input your mark."); int x = sc.nextInt(); System.out.println("Student 2, input your mark."); int y = sc.nextInt(); int value = maximum(x,y); System.out.println(maximum); } static public int maximum(int x,int y) { return Math.max(x,y); } }