Skip to content

Instantly share code, notes, and snippets.

@rbonvall
Created December 30, 2014 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbonvall/1fe47b09791114160dc6 to your computer and use it in GitHub Desktop.
Save rbonvall/1fe47b09791114160dc6 to your computer and use it in GitHub Desktop.
Unicode characters in Java identifiers
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