Java solutions for CodeEval problems