📜  索引 1 超出长度 1 java 代码示例

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

代码示例1
1 means index 1 is invalid and it's out of bound i.e. more than the length of the array.
  Since array has a zero-based index in java , this means you are trying to access the second element of
  array which only contains one element.