Java Program to Add Two Matrices

Write a java program to add two matrices.

For example : Given two matrices A and B the sum of these two matrices is A + B.

{1,  5,  1}                   {1,  1,  9}              {2,  6,  10}
{2,  8,  2}      +         {2,  2,  3}    =       {4,  10,  5}
{3,  7,  1}                  {5,  6,  4}              {8,  13,  5}