Last active
May 25, 2021 08:50
-
-
Save sidd-kulk/1186c0c122db0de11642f9246119c4bb to your computer and use it in GitHub Desktop.
Revisions
-
sidd-kulk revised this gist
May 25, 2021 . 1 changed file with 8 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,14 @@ public String doStuff(StringBuffer data) { if(data != null) { for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { data.append(String.valueOf(i+j)); } data.append("\n"); } } else { data = new StringBuffer"); } return data.toString(); -
sidd-kulk created this gist
May 24, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ public String doStuff(StringBuffer data) { for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { data.append(); } data.append("\n"); } return data.toString(); }