/**
   This class just illustrates the declaring, initializing and
	printing the contents of a two-dimensional array. Uses Double
	instead of double and shows output if don't fill entire array
	
	@author Elizabeth Adams
	@version 1.2
	*/
import java.util.Scanner;
public class TwoD3
{
   public static void main (String [] args)
	{
     Scanner keyboard;  // used to get values from user
     double [] [] scores;  // two-dimensional array to hold values
	  
	  scores = new double [4][5]; // will have 4 rows, 5 columns
	  keyboard = new Scanner (System.in);
     
	  for (int row = 0; row < 3; row++)// for each row
	  {
		  for (int col = 0; col < 3; col++) // get column values
	     {
		    System.out.print("Enter a score: ");
    		 scores[row][col] = keyboard.nextDouble();
		  }// end inner for
	  }// end outer for

     for (int row = 0; row < 3; row++)  // for each row
	  {
		  for (int col = 0; col < 4; col++)  // print column values
	     {
		    System.out.print (scores[row][col] + " ");
	 	  }// end inner for
		  System.out.println ();
		}// end outer for

   }// end main
} // end class