public static void main(String[] args) {
Random r = new Random();
int[] fiveRandomNumbers = r.ints(5, 0, 100).toArray();
int item = Arrays.stream(fiveRandomNumbers).max().getAsInt();
System.out.println(Arrays.stream(fiveRandomNumbers).boxed().collect(Collectors.toList()) +" - "+ item);
}