Last active
May 25, 2021 08:50
-
-
Save sidd-kulk/1186c0c122db0de11642f9246119c4bb to your computer and use it in GitHub Desktop.
Indentation
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 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(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment