Added Java solutions for multiple problems