Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java n-node tree
icon5.gif  Java n-node tree [message #1690417] Fri, 27 March 2015 05:15 Go to next message
Eclipse UserFriend
Hi. I'm trying to write Java code for the following figure. Where,

if node=4 will create following separate 4 trees. Number of node in

LEVEL1 (yellow) = 1 node
LEVEL2 (green) = n-1 node
LEVEL3 (blue) = n-2 node
index.php/fa/21351/0/

Another way if node = 5 then,
LEVEL1 (yellow) = 1 node
LEVEL2 (green) = n-1 node
LEVEL3 (blue) = n-2 node
index.php/fa/21352/0/

And so on. Thanks in advance for kind help.
  • Attachment: 4node.png
    (Size: 24.23KB, Downloaded 303 times)
  • Attachment: 5node2.png
    (Size: 62.30KB, Downloaded 365 times)
Re: Java n-node tree [message #1690434 is a reply to message #1690417] Fri, 27 March 2015 06:10 Go to previous message
Eclipse UserFriend
Azar,

There's no question mark in your post. Presumably you're asking how to
create such pretty pictures in Java. But this forum is for asking
questions about using Eclipse Java tools, not a general forum of how to
write Java code to achieve some specific purpose. Better you use
stackoverflow or Java ranch for questions of such a nature, after you've
exhausted Google search...


On 27/03/2015 10:15 AM, azar azlan wrote:
> Hi. I'm trying to write Java code for the following figure. Where,
>
> if node=4 will create following separate 4 trees. Number of node in
>
> LEVEL1 (yellow) = 1 node
> LEVEL2 (green) = n-1 node
> LEVEL3 (blue) = n-2 node
>
>
> Another way if node = 5 then,
> LEVEL1 (yellow) = 1 node
> LEVEL2 (green) = n-1 node
> LEVEL3 (blue) = n-2 node
>
>
> And so on. Thanks in advance for kind help.
Previous Topic:Add my plugin to new Java project classpath
Next Topic:Sorting members of a Java file per commandline
Goto Forum:
  


Current Time: Sat Apr 26 11:46:52 EDT 2025

Powered by FUDForum. Page generated in 0.03187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top