import java.io.*;

class matrixtest
 {input in = new input();
  int[][] ma = new int[3][4];

  public void enter() throws IOException
   {for (int r = 0; r < ma.length; r++)
   {
     for (int c = 0; c < ma[r].length; c++)
       {System.out.print("Enter a number ");
        ma[r][c] =in.getInt();
       }
     System.out.println();
    }
  }

  public void print()
     {for (int r = 0; r  < ma.length; r++)
     {
       for (int c = 0; c < ma[r].length; c++)
         {System.out.print(ma[r][c]+ " ");
         }
       System.out.println();
      }
     }
     }
*********************************************************
import java.io.*;

public class matrixtest2
{
	public static input in = new input();

	public static void main(String[] args) throws IOException
	{matrixtest m = new matrixtest();
	 m.enter();
	 m.print();
	}
}