r/learnjava • u/[deleted] • Sep 23 '16
What does it mean when you use the single quotation for assigning values?
For example, double w='a'+5. Is 'a' referring to character a?
1
Upvotes
r/learnjava • u/[deleted] • Sep 23 '16
For example, double w='a'+5. Is 'a' referring to character a?
2
u/[deleted] Sep 23 '16
Yes, it is referring to a char. But I think that a will be equal to a number in this context, because every character matches a specific number.
For example: A=1 and a=27
Not completely sure if it is this way.