Recommended Answers

All 5 Replies

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();
  }
}

Okay? And the rest of the methods?

Yeah... that's all I got.
I was hoping you guys could help with the rest of the methods

Well, I believe I said in the first reply that we weren't going to do it for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.