Skip to content

Instantly share code, notes, and snippets.

@sidcool1234
Last active May 25, 2021 08:50
Show Gist options
  • Save sidcool1234/1186c0c122db0de11642f9246119c4bb to your computer and use it in GitHub Desktop.
Save sidcool1234/1186c0c122db0de11642f9246119c4bb to your computer and use it in GitHub Desktop.
Indentation
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