Forums Register Login

variable names

+Pie Number of slices to send: Send
Why does the compiler give the error:

when the Unicode character ALT 0215 is used in a variable name?
My guess (which is most likly wrong) is because Java allows characters in the variable name to be any characters except those used as operators ( + , - , or * ), and ALT 0215 (�) looks like a multiplication operator.
Thanks.
+Pie Number of slices to send: Send
a variable which would give the error is:

which is t(ALT 0214)(ALT 0215)(ALT 0216)
a variable which does not give the error is:

which is t(ALT 0214)(ALT 0216)
I know naming variables like this is not standard, but I am just wondering why both ALT 0214 and ALT 0216 are allowed and ALT 0215 is not.
I was born with webbed fish toes. This tiny ad is my only friend:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 587 times.
Similar Threads
Textfiled with varible width field.
someString.replace( ',', '' ) - Question ????
valid Identifier
Char question
Test Input Calculator Help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:03:14.