Unicode variable names: Difference between revisions
Content deleted Content added
Go solution |
added jav a |
||
Line 21:
2
</pre>
=={{header|Java}}==
<lang java>int Δ = 1;
double π = 3.141592;
String 你好 = "hello";
Δ++;
System.out.println(Δ);</lang>
Output:
<pre>
2
</pre>
=={{header|Perl6}}==
Perl 6 is written in Unicode so, with narrow restrictions, nearly any Unicode letter can be used in identifiers.
|