Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

cannot set char field to null value java

//The primitive datatype int isn't nullable. 
//What you can do is set its value to 0
char [] c= {'a','b','c','d'};
c[2] = 0; //now c becomes {'a','b',0,'d'}
 
PREVIOUS NEXT
Tagged: #set #char #field #null #java
ADD COMMENT
Topic
Name
8+7 =