Any suggestion please?
package de.codegym.task.task05.task0532;
import java.io.*;
import java.util.*;
/*
Aufgabe zu Algorithmen
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
Scanner sc = new Scanner(System.in);
int maximum = 0;
int count = 0;
String a = reader.readLine();
int Anzahl = Integer.parseInt(a);
if (Anzahl <= 0) {
return;
}
while (count < Anzahl) {
String e = reader.readLine();
int Eingabe = Integer.parseInt(e);
if (Eingabe < 1) {
count--;
} else if (Eingabe > maximum) {
maximum = Eingabe;
} else {
maximum = maximum;
}
count++;
}
System.out.println(maximum);
}
}