Last active
June 1, 2020 16:52
-
-
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.
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
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 | |
); | |
}} |
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
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