Show pre-java 8 solution.