| ||||||||||
For the third method we have to write for the homework, is this the proper constructor? public void replaceWithModifications(PositionedSceneElement findelement, double[] types){ |
Also, how do I traverse the array that is inputed? Right now I have: for (int i= 1; i<=types.getLength();i++) {. That, however, does not work because it says there is no getLength() method in the class double. How do I go about traversing the array? Thanks! |
If I am working in the PositionedSceneElement class, how do I use the picture methods on the input nodes? |
For the replaceWithModification(findelement,int type), the instructions say to replace findelement with a new node. Instead, can we just replace findelement's myPic with a the modified Picture? |
I am sorry, words don't do me good. This question wording is too complicated for me, in the final product, I am not sure what we're suppose to have shown. Three separate pictures what shows up at the same time or mayhaps something else? |
Will oldelement/findelement ever be the last node in the list? If so, how can I manipulate the last element (b/c with "while current.getNext() != null", the loop breaks before changes to the last node can be made)? |