Thanks for what?

We are definately not going to do it for you, especially when you can't even take the time to describe your problem.

Show your code, provide a good, but short, description of the current problems with it, and provide any and all error/compiler messages and we may help you solve it (although I don't know about that after this pitiful plea).

import java.util.Scanner;
public class Matrix
{
   public Matrix() 
   {
     
   }
   public void enterMatrix()
   {
      Scanner input = new Scanner(System.in);
      System.out.print("Enter number of rows -> ");
      r=input.nextInt();
      System.out.print("Enter numerof columns -> ");
      c=input.nextInt();
      for(int i=0;i<r;i++)
      {
         for (int j=0;j<c;j++)
         {
             System.out.print("Enter value at row "+i+", column "+j+" -> ");
             m[i][j]=input.nextInt();
         }
      }
   }
   public void printMatrix()
   {
       for (int i=0;i<r;i++)
       {
           for (int j=0;j<c;j++)
           {
               System.out.print(m[i][j]+" ");
           }
           System.out.println();
       }
    }
   public void multMatrix()
   {
       
    }
   int[][] m = new int[10][10];
   int r;
   int c;
   }

and the test

public class MatrixTest
{
  public static void main (String[] args)
  {
      Matrix a=new Matrix();
      a.enterMatrix();
      a.printMatrix();
  }
}
This article has been dead for over six months. Start a new discussion instead.