// "Collapse loop with stream 'max()'" "true-preview"

import java.util.*;

public class Main {
  public void work(int[] ints) {
    int max = Arrays.stream(ints).max().orElse(Integer.MIN_VALUE);
  }
}