Java Summarized implementation