What is the wrong with this solution - is showing me the largerst number but not accepted?
// The program should display the maximum of the N entered numbers. - this is not accepted, this requitment
// also some hint/error I get : Be sure that the program works correctly for negative numbers.

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 maximum = 0;
int N;
N = Integer.parseInt(reader.readLine());
/*
while (maximum < 0 ){
maximum = Integer.parseInt(reader.readLine());
}
*/
int tempInputN = 0;
int maximumTemp = 0;
for( int i = 0; i < N; i++){
//entering the current N.th number
tempInputN = Integer.parseInt(reader.readLine());
// if current entered number is largest,then the
// temporary max.number will the new Max number
if( tempInputN > maximumTemp){
maximumTemp = tempInputN;
}
}
// printing out the maximum number, without this if , the last
// requetment doesnt accepted - (The program should not display
// anything if N is less than or equal to 0.)
if(maximumTemp<=0){
} else{
System.out.println(maximumTemp);
}
}
}