Answers for "How to assign null value to array in Java"

0

set integer array value to null java

//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)
Posted by: Guest on June-18-2021

Code answers related to "How to assign null value to array in Java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language