Skip to content

Instantly share code, notes, and snippets.

@zane
Created April 9, 2009 00:06
Show Gist options
  • Save zane/92142 to your computer and use it in GitHub Desktop.
Save zane/92142 to your computer and use it in GitHub Desktop.
String horizStringHelp(int now){
int index = 0;
String sofar = "";
while(index <= 6){
sofar = sofar +
this.columns.get(index).pieces.get(now).makeString() + " ";
index++;
}
return sofar;
}
/* is the same as */
String horizStringHelp(int now){
String sofar = "";
for (Column column : this.columns)
sofar = sofar +
column.pieces.get(now).makeString() + " ";
}
return sofar;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment