8.3 solution added (Java version)