plz help me with this I don't know how to do that. Can someone help me with the solution 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 maximum = Integer.MIN_VALUE;
int count = Integer.parseInt(reader.readLine());
for (int i=0; i<count; i++)
{
if (maximum<=0)
return;
int x = Integer.parseInt(reader.readLine());
if (maximum<x)
maximum = x;
}
System.out.println(maximum);
}
}