Search:

Type: Posts; User: gonfreecks

Search: Search took 0.17 seconds.

  1. Replies
    5
    Views
    1,668

    Re: 1st time using methods

    yeah but my homework specifically said that the data should be stored in the reference variable called mat and the size of the method should be the value returned

    uhh you said to return the array...
  2. Replies
    5
    Views
    1,668

    Re: 1st time using methods

    i already tried that code

    public static void printMat(int [][] mat, int size){
    for ( int i = 0; i < mat.length; i++ ){
    for ( int j = 0; j < mat[i].length; j++ ){
    ...
  3. Replies
    5
    Views
    1,668

    1st time using methods

    public static int loadMat(int [][] mat) throws Exception{
    int size, row, col = 0, num;
    Scanner input = new Scanner(System.in);
    System.out.print("Enter the size of the...
Results 1 to 3 of 3