Can anyone give me a hint of what I'm doing wrong? I get the correct answer but I fail the last 2 requirements.package com.codegym.task.task05.task0532;
import java.io.*;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(reader.readLine());
int maximum = N;
if (N <=0){}
else {
for (int i=0; i < N; i++) {
int num = Integer.parseInt(reader.readLine());
if (maximum <= num) {
maximum = num;
} else {}
}}
//write your code here
System.out.println(maximum);
}
}