Mainly rewrote a couple of the questions to properly reflect a faithful translation of Java source code, also wrote the Java version of the algorithms.