P303: Added Java solution.