P151: Added Java solution.
P150: Added Java solution.