P280: Added Java solution.