Ah. Got it! Thanks! and I didn't copy all the }s, so that's why they seemed out of place.
Type: Posts; User: Elyril
Ah. Got it! Thanks! and I didn't copy all the }s, so that's why they seemed out of place.
Ah.. I see. I thought that was how it was supposed to be, but I kept doubting myself. and now this is my code
public static void printMatrix(int n) {
//first loop = rows, second loop = columns...
This is what I have for my method <printMatrix>. I'm not sure how to make it so that the input can be used in the method. Also, not sure if both for loops should have n as the variable.
public...
Please help.. I have an assignment that states that we have to print out a matrix of random 0s and 1s, the size of n-by-n with n coming from user input. With that being said, I know I have to use...