Skip to content

Instantly share code, notes, and snippets.

@hsyhhssyy
Last active June 1, 2020 16:52
Show Gist options
  • Save hsyhhssyy/dd8ebfb6d3bb40c30da19139d2ef99f2 to your computer and use it in GitHub Desktop.
Save hsyhhssyy/dd8ebfb6d3bb40c30da19139d2ef99f2 to your computer and use it in GitHub Desktop.
This code is valid in both Java and C#, and output the same.
public class JavaCSharp { public static void
//\u000Amain
//\u000A\u002F\u002A
Main//\u002A\u002F
(String[] args) {
//\u000ASystem.out.printf("%s",
//\u000A\u002F\u002A
Console.WriteLine(//\u002A\u002F
//\u000Anew Object[]{
"Hello World!"
//\u000A}\u000A
);
}}
public class JavaCSharp { public static void
//\u000Amain
//\u000A\u002F\u002A
Main//\u002A\u002F
(String[] args) {
//\u000ASystem.out.printf("%s",
//\u000A\u002F\u002A
Console.WriteLine(//\u002A\u002F
//\u000Anew Object[]{
"Hello World!"
//\u000A}\u000A
);
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment