package psn.ted;

import java.time.Month;
import java.time.YearMonth;
import java.time.temporal.ChronoUnit;
import java.util.stream.Stream;

public class TestClass {
	public static void main(String[] args) {
		System.out.println("Hello");
		Runtime.getRuntime().totalMemory();
		
		YearMonth ym1 = YearMonth.now();
		YearMonth ym2 = YearMonth.of(2019,  Month.FEBRUARY);
		System.out.println(ym1.until(ym2, ChronoUnit.MONTHS));
		System.out.println(Stream.of("green","yellow", "blue")
				.max((s1,s2)->s1.compareTo(s2)*(-1))
				.filter(s->s.endsWith("n"))
				.orElse("yellow"));
		Double d = null;;
		System.out.println(d instanceof Double);
		System.out.println(Math.round(Math.random()*10));
	}
}
