Could you help me to write a method to calculate maximum of N entered numbers? public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); int maximum = 0; int n = sc1.nextInt(); System.out.println(maximum); if (n> 0) { for (int x=0; x<n; x++) { } } } }