set char value to null java
//Primitives data types aren't nullable. However, you can use the following
c[i]= '\0';
OR
c[i] = 0;
set char value to null java
//Primitives data types aren't nullable. However, you can use the following
c[i]= '\0';
OR
c[i] = 0;
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'}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us