📌  相关文章
📜  如何检查数组是否已满java代码示例

📅  最后修改于: 2022-03-11 14:52:35.309000             🧑  作者: Mango

代码示例1
int[] candy = new int[10];  //Array size is 10
     //first array: Index 0, last array index: 9. 
     for (int x=0; x < candy.length; x++)
           if (x == candy.length - 1)
                //Reached last element of array