Skip to content

Instantly share code, notes, and snippets.

@perryBunn
Last active March 19, 2017 20:39
Show Gist options
  • Save perryBunn/a59d40073a9930759f55ae6afba24fce to your computer and use it in GitHub Desktop.
Save perryBunn/a59d40073a9930759f55ae6afba24fce to your computer and use it in GitHub Desktop.
edit dodecahedron example
public boolean editDodecahedron(String labelIn, String colorIn, double edgeIn) {
if (arrSize != 0) {
boolean result = false;
for (int i = 0; i < arrSize; i++) {
if (dodObjList[i].getLabel().equals(labelIn)) {
dodObjList[i].setColor(colorIn);
dodObjList[i].setEdge(edgeIn);
result = true;
break;
}
}
return result;
} else {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment