Last active
March 19, 2017 20:39
-
-
Save perryBunn/a59d40073a9930759f55ae6afba24fce to your computer and use it in GitHub Desktop.
edit dodecahedron example
This file contains hidden or 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 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