Advertisement
Guest User

Assignment2

a guest
Sep 16th, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. /*
  2.  * Step0:
  3.  * 1. Method "m"
  4.  */
  5.  
  6. import java.util.*;
  7. public class Assignment2 {
  8.  
  9.     public static void main(String[] args) {
  10.        
  11.             //Create Scanner Object
  12.         Scanner input = new Scanner(System.in);
  13.        
  14.             //Accept Input for Number of rows then columns
  15.         int rowVal = input.nextInt();
  16.         int colVal = input.nextInt();
  17.        
  18.         double inpData[][]= new double[rowVal][colVal];
  19.        
  20.             //Accept double inputs into Array
  21.         for(int i=0; i<rowVal;i++) {
  22.             for(int j=0; j<colVal;j++) {
  23.                 inpData[i][j] = input.nextDouble();            
  24.             }
  25.         }
  26.            
  27.             //Invoke Method and Iterate Through Rows
  28.         for(int k=0;k<rowVal;k++){
  29.             System.out.println(columnMin[]);
  30.                
  31.             }
  32.        
  33.        
  34.        
  35.  
  36.        
  37.             //Close Scanner
  38.             input.close();
  39.         }
  40.  
  41.    
  42.     public static double columnMin(double[][] m, int columnIndex){
  43.         for(int m=0;;m++) {
  44.            
  45.           }
  46.         }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement