PAT solutions in JAVA.