не вижу
package com.javarush.task.task07.task0701;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Массивный максимум
*/
public class Solution {
public static void main(String[] args) throws Exception {
int[] array = initializeArray();
int max = max(array);
System.out.println(max);
}
public static int[] initializeArray() throws IOException {
BufferedReader h= new BufferedReader(new InputStreamReader(System.in));
int[] j= new int[20];
for(int i= 0;i<j.length;i++){
j[i]=Integer.parseInt(h.readLine());}
return j;
}
public static int max(int[] array) {
int s=0;
while(s!=19){
if(array[s]<0){
array[s]=0;
}s++;
break;}
int r= Math.max(Math.max(Math.max(Math.max(Math.max(array[0],array[1]),Math.max(array[2],array[3])),Math.max(Math.max(array[4],array[5]),Math.max(array[6],array[7]))),Math.max(Math.max(Math.max(array[8],array[9]),Math.max(array[10],array[11])),Math.max(Math.max(array[12],array[13]),Math.max(array[14],array[15])))),Math.max(Math.max(array[16],array[17]),Math.max(array[18],array[19])));
return r;
}
}