Rapalli Nikhil
Tree2
0 Answer(s)      2 years and 4 months ago
Posted in : Java Beginners

) Include a method that will multiply by three every node of the tree: public void triple() { ... } For example, the tree

                               t =                        3
                                                        /        \
                                                        /        \
                                                      4             5
                                                 /        \       /        \
                                               6           7      8        9

after doing t.triple(); should become 9 / \ / \ 12 15 / \ / \ 18 21 24 27 print("code sample");

View Answers









Related Pages:
Tree2
Tree2  ) Include a method that will multiply by three every node of the tree: public void triple() { ... } For example, the tree t = 3
Adding Line to JTree
creates a box and two trees (tree1 and tree2). These trees contains the multiple...;JTree tree2 = new JTree();   JScrollPane scroll2 = new JScrollPane(tree2);   box.add(scroll1, 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.