P132: Added Java and Mathematica solutions.