Login
Login

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

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1814
    hessinemaaoui
    Keymaster

    Hi,

    What is the code for finding the number of matrices contained in a Matrix[] object?

    chunyip

    #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.

    #1956
    haksunli
    Keymaster

    As a side note, if you hit in Netbeans [tt:2xvqxzkd]CTRL-SPACE[/tt:2xvqxzkd] after the “.”, e.g.,

    , you will see the list of available properties and the javadoc. One of the properties of [tt:2xvqxzkd]Array[/tt:2xvqxzkd] is [tt:2xvqxzkd]length[/tt:2xvqxzkd].

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.