Last active
June 15, 2020 23:31
-
-
Save john-science/b160948614bfd29de5c3 to your computer and use it in GitHub Desktop.
Emoji in Java
This file contains hidden or 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
/** | |
* 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