Generation

generate functionWed, 01 Feb 2023

max in arrayList java streams

public int max(ArrayList<Integer> inputList) { return inputList.stream().max(Integer::compare).get(); }

Want to kickstart your project?Use the new AI Studio to create your code