java 8 thinking style change