Can anybody check my code 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 = 0; // write your code here int number = Integer.parseInt(reader.readLine()); int n = 0; if (number > 0) { for (int i = 0; i < number; i++) { try { n = Integer.parseInt(reader.readLine()); if (n > 0 && n > maximum) { maximum = n; } else if (n <= 0) { i--; } } catch (Exception e) { // TODO: handle exception break; } } System.out.println(maximum); } else { System.exit(0); } } }