开发者

Android count size of INT Array

开发者 https://www.devze.com 2023-01-12 09:29 出处:网络
I have an Array like: private static int[] f_arme = { R.drawable.frankiearmevor_0001, R.drawable.frankiearmevor_0002,

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[]


Use the length property:

f_arme.length
0

精彩评论

暂无评论...
验证码 换一张
取 消