Login
Login

Re: Find the number of matrices in a Matrix[] object.

Home 21090308 Forums Programming Java Find the number of matrices in a Matrix[] object. Re: Find the number of matrices in a Matrix[] object.

#1955
haksunli
Keymaster

What exactly do you mean?

When you declare an array, e.g.,

You will need to give them a fixed size. So, you always know the length.

If your function takes an array as an argument, e.g.,

To find the length of A, you can do:

Hope this helps.