cannot set char field to null value java

Solutions on MaxInterview for cannot set char field to null value java by the best coders in the world

showing results for - "cannot set char field to null value java"
Alejandro
31 Apr 2018
1//The primitive datatype int isn't nullable. 
2//What you can do is set its value to 0
3char [] c= {'a','b','c','d'};
4c[2] = 0; //now c becomes {'a','b',0,'d'}
5