Skip to content

Instantly share code, notes, and snippets.

@john-science
Last active June 15, 2020 23:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-science/b160948614bfd29de5c3 to your computer and use it in GitHub Desktop.
Save john-science/b160948614bfd29de5c3 to your computer and use it in GitHub Desktop.
Emoji in Java
/**
* A quick example of using Emoji in Java.
* compile with: javac HelloWorld.java
* run with: java HelloWorld
*/
public class HelloWorld {
public static void main(String[] args) {
String \u0ca2 = "Hello, World 1";
String \u1f60b1 = "Hello, World 2";
String \u1f419 = "Hello, World 3";
System.out.println(\u0ca2);
System.out.println(\u1f60b1);
System.out.println(\u1f419);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment