Write a program to do matrix multiplication of 3*3 matrixes.

class Matrix
{
            int a[][]=new int[3][3];
            int b[][]=new int[3][3];
            int c[][]=new int[3][3];
            int sum =0;
            void process()
            {
                        for(int i=0;i<3;i++)
                        {
                                    for(int j=0;j<3;j++)
                                    {
                                                sum =0;          
                                                for(int p=0;p<3;p++)
                                                {
                                                            sum = sum + (a[i][p]*b[p][j]);             
                                                }
                                                c[i][j] = sum;  
                                    }
                        }
                        for(int i=0;i<3;i++)
                        {
                                    for(int j=0;j<3;j++)
                                    {
                                                System.out.print(c[i][j]+"\t");
                                    }
                                    System.out.print("\n");
                        }
            }
            public static void main(String arg[])
            {
                        int r=0;
                        Matrix m=new Matrix();
                        for(int k=0;k<3;k++)
                        {
                                    for(int l=0;l<3;l++)
                                    {
                                                m.a[k][l] = Integer.parseInt(arg[r]);
                                                r++;
                                    }
                        }
                        for(int k=0;k<3;k++)
                        {
                                    for(int l=0;l<3;l++)
                                    {
                                                m.b[k][l] = Integer.parseInt(arg[r]);
                                                r++;
                                    }
                        }
                        m.process();
            }
}