Last active
February 9, 2018 09:17
-
-
Save dklotz/03c660e7735e0c4e4bac528fef3d9280 to your computer and use it in GitHub Desktop.
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 TestMain { | |
public static void main(String[] args) { | |
// What does this program print when run? | |
// \u000d System.out.println("Hello "); | |
System.out.println("World!"); | |
} | |
} |
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
fun main(args: Array<String>) { | |
// Does not work in Kotlin! | |
// \u000d println("Hello ") | |
println("World!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See this SO question for more details why Java is behaving like that.