0

I have an Array like:

 private static int[] f_arme = {
     R.drawable.frankiearmevor_0001, 
     R.drawable.frankiearmevor_0002, 
     R.drawable.frankiearmevor_0003, 
     R.drawable.frankiearmevor_0004, 
     R.drawable.frankiearmevor_0005

}

how Do I get the Size of that array (f_arme) ?? = 5 I tried f_arme.size() but get "cannot invoke size() on the array type int[]

1 Answer 1

10

Use the length property:

f_arme.length
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.