get the min value in the list using java stream

get the min value in the list using java stream
refer ‮‬to:lautturi.com
/**
 * @author lautturi.com 
 * Java example: java find the min value of list using stream api
 */

import java.util.*;
import java.util.stream.Stream;

public class Lautturi {
	public static void main(String[] args) {

		List<Integer> list = Arrays.asList(11,4,2,7,55,16,12,8,13,38);

		Integer min = list.stream().min(Integer::compare).get();

		System.out.print(min);

	}
}

output:

2
Created Time:2017-09-30 17:13:11  Author:lautturi