Using Java 7 methods