Hello everybody, my code can't pass the last requirement. Someone could help me please?
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 count = Integer.parseInt(reader.readLine());
int start = Integer.parseInt(reader.readLine());
int maximum = start;
if (count==0 || count<0) {
return;
}
else {
for (int x = 1; x < count; x++)
{
maximum = Integer.parseInt(reader.readLine());
if (start > maximum)
{
maximum = start;
}
else {
start = maximum;
}
}
}
System.out.println(maximum);
}
}