Ben's Java Code.