P155, P225: Added Java solution.