Created
August 25, 2015 04:28
-
-
Save aows/09d6290d396378d930aa to your computer and use it in GitHub Desktop.
String vs StringBuilder example
This file contains 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 Test1 { | |
public static void main(String[] args) { | |
String aString = ""; | |
for (int i=0; i<10; i++) { | |
aString += i; | |
} | |
System.out.println(aString); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment