0
how can I use boolean or char as variables?
2 Réponses
+ 1
char anyName = 'g';
boolean anyOtherName = true;
boolean accepts only true/false.char accepts single characters.
- 1
You can change the type of them too.
For char ( if it already isn't ):
str(something)
For boolean:
bool(something)