Skip to content

Instantly share code, notes, and snippets.

@aows
Created August 25, 2015 04:28
Show Gist options
  • Save aows/09d6290d396378d930aa to your computer and use it in GitHub Desktop.
Save aows/09d6290d396378d930aa to your computer and use it in GitHub Desktop.
String vs StringBuilder example
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