Can anyone tell me what is wrong here?
package com.codegym.task.task05.task0532;
import java.io.*;
import java.util.Scanner;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int maximum = 0;
int total = sc.nextInt();
int[] numbers = new int[total];
//write your code here
for (int i = 0 ; i < total ; i ++){
numbers[i] = sc.nextInt();
}
for (int i = 0 ; i < total ; i ++){
if (numbers[i] > maximum){
maximum = numbers[i];
}
}
System.out.println(maximum);
}
}