Search:

Type: Posts; User: ColeTrain

Search: Search took 0.24 seconds.

  1. Re: Why cant I call on the array I returned in the main method?

    In my method addMatrix I return the array result. I then try to call it in my main method to print out, however it gives me an error saying it cannot find the variable. Since I returned it shouldnt I...
  2. Why cant I call on the array I returned in the main method?

    //matrix1
    double[][] matrix1 = {{1, 2, 3},{4, 5, 6},{7, 8, 9}};

    //matrix2
    double[][] matrix2 = {{0, 2, 4},{1, 4.5, 2.2},{1.1, 4.3, 5.2}};

    addMatrix(matrix1,...
Results 1 to 2 of 2