set integer array value to null java

Solutions on MaxInterview for set integer array value to null java by the best coders in the world

showing results for - "set integer array value to null java"
Liam
21 Oct 2019
1//null or NULL won't work in java, so you can set int value to -1 or 0.
2//0 is dafault;
3int [] a= {1,2,3}
4a[0] = 0;  //now a becomes (0,1,3)