📜  将整数数组值设置为空 java 代码示例

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

代码示例1
//null or NULL won't work in java, so you can set int value to -1 or 0.
//0 is dafault;
int [] a= {1,2,3}
a[0] = 0;  //now a becomes (0,1,3)