Created
December 30, 2014 18:08
-
-
Save rbonvall/1fe47b09791114160dc6 to your computer and use it in GitHub Desktop.
Unicode characters in Java identifiers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App { | |
static String x8mil200µm; // micro symbol | |
static String x7mil175μm; // mu letter | |
static int aβc = 10; | |
static final double π = 3.14159265359; | |
public static void main(String[] args) { | |
x8mil200µm = "Y"; | |
x7mil175μm = "N"; | |
a\u03b2c = 20; | |
System.out.println(x8mil200µm); | |
System.out.println(x7mil175μm); | |
System.out.println(π); | |
System.out.println(aβc); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment