java7 examples