ajprincess
  • ajprincess
Pls help.:) I want someone to explain me this method statement by statement.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
ajprincess
  • ajprincess
public void displayTree() { Stack Stack1=new Stack(); Stack1.push(root); int nBlanks = 32; boolean isRowEmpty = false; System.out.println("..............................................................."); while(isRowEmpty==false) { Stack Stack2 = new Stack(); isRowEmpty = true; for(int j=0; j
ajprincess
  • ajprincess
@e.mccormick
ajprincess
  • ajprincess
if u dnt mind can u pls give me links where can I find an explanation of this method.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

e.mccormick
  • e.mccormick
Well, I am not sure what it is from, and they did not document it. From the name, I would guess it is meant to print out something based on a binary tree. It is public, so things in it could be used by others.... but exactly how it would be used depends on what it was written to work with. I am just starting to learn Java myself. I know a good deal of C++, which is similar. The stack is a sort of last in first out data type, so the data is ordered in that way. Past that, I would have to build some sort of test harness to see what it gave me.
ajprincess
  • ajprincess
hmm k. thanx a lot for tryng to help me.
e.mccormick
  • e.mccormick
How the stack itself works: http://introcs.cs.princeton.edu/java/43stack/ But when I search for Node as a data type, I don't get a standard reference, so I am not sure what the nodes are that it is putting on this stack.
e.mccormick
  • e.mccormick
Ah, changed my search a little and got this on nodes: http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/Node.html
ankit042
  • ankit042
This looks like a pre-order traversal to me...have to check it though
ajprincess
  • ajprincess
@hba
hba
  • hba
|dw:1378481510018:dw|
hba
  • hba
Acha now listen there is this well which has bricks and they can be of any size now i'll put some plates of any size.I want this program to count number of plates in the well.

Looking for something else?

Not the answer you are looking for? Search for more explanations.