Java-7 examples