To initialize a
char
in Java, assign '\0'
to it.Here's how you do it:
chat myChar = '\0';
Assigning 0
is also a good alternative:
chat myChar = 0;
char
in Java, assign '\0'
to it.Here's how you do it:
chat myChar = '\0';
Assigning 0
is also a good alternative:
chat myChar = 0;