Skip to content

Instantly share code, notes, and snippets.

@kleberksms
Last active March 13, 2019 17:20
Show Gist options
  • Select an option

  • Save kleberksms/2aa153cceb99ed2ebd876ac8291017c1 to your computer and use it in GitHub Desktop.

Select an option

Save kleberksms/2aa153cceb99ed2ebd876ac8291017c1 to your computer and use it in GitHub Desktop.
One level of indentation per method
class Board
{
...
String board()
{
StringBuffer buf = new StringBuffer();
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
buf.append(data[i][j]);
}
buf.append("\n");
}
return buf.toString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment