Skip to content

Instantly share code, notes, and snippets.

@benjholla
Created March 6, 2015 16:54
Show Gist options
  • Save benjholla/89b5f5923b002d75d58b to your computer and use it in GitHub Desktop.
Save benjholla/89b5f5923b002d75d58b to your computer and use it in GitHub Desktop.
Some fun with Unicode. The main method calls the print method 3 times.
public class UnicodeEvil {
public static void main(String[] args) {
print("Hello");
/*
* TODO: print World in unicode
* \u002A\u002F\u0070\u0072\u0069\u006E\u0074\u0028\u0022\u0043\u0072\u0075\u0065\u006C\u0022\u0029\u003B\u002F\u002A
*/
print("World");
}
private static void print(String s){
System.out.print(s + " ");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment