In opinion it's correct, but the condition isn't solved.
package de.codegym.task.task05.task0532;
import java.io.*;
/*
Aufgabe zu Algorithmen
*/
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());
if(count > 0) {
int b = Integer.parseInt(reader.readLine());
int maximum = b;
//schreib hier deinen Code
for (int i = 1; i < count; i++){
int a = Integer.parseInt(reader.readLine());
if (maximum <= a)
maximum = a;
}
if(maximum >0)
System.out.println(maximum);
}
}
}