Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Creating a tree in java

Name: Anonymous 2012-08-02 13:35

I need to create a web application Tree structure
The rules are:
- every leaf will be used to hold a number
- every root needs also to show the sum of the leafs and nodes before it
- infinity extendible
- its must Work with a GUI (so u need to see the root, leafs etc.)
- be able to change a leaf/node (CRUD)
- be able to copy/paste/move a leaf/node (optional)
- save it
- test cases (not sure what that means)
- it should be a .war

framework etc doesn't matter, i need it to get a apprenticeship i didn't code for like 1/2-1 year and never used java. I don´t really need the solution more some key words what i will need like "dynamic list" (does java even has this?) or a good GUI builder and what i need to be concerned about also data or database.

Name: Anonymous 2012-08-02 13:36

- every root needs also to show the sum of the leafs and nodes before it meant node

Name: Anonymous 2012-08-02 13:37

le downgoated

Name: Anonymous 2012-08-02 15:16

lol java if i wantd my code 2 b slow id put a sleep(3600000) somewhere in.but of course java slows it down more elegantly and makes ur codin' xperience shittier in an elegant way

Name: Anonymous 2012-08-02 15:18

- it should be a .war


reported to .military you cum guzzling superfaggit

Name: Anonymous 2012-08-02 15:28

WE MUST RETURN TO THE ORIGINA L PREMISE OF LIFEFORM WHERE SYNTHETIZED CREATURES PUT UP JOLLY GOOD CHAP SAUSAGES: WE IS A WHY WHAT ARE.!
even thiS TEXT IS BEING REPEATED BY THE COSMIC INDEX ON AN INFINITELY SCALABLE ORBIT.WHAT IF YOUR MOM OR|BITS MY DICK? EVERYTHING IS AY IS IN tHE SAME tONE aSS MY TEST TUBE BROTHERS VOICE SO iT dOEZ nOt matt3R IF I aM STUpId Or beinG stUPiiiiiiiiiiiiiiiiiiipdipdpdipdidpdd C0Z ALL I DO IS WHAT IS ON THE OCEAN OF DRAGONS FIFTY! SOMEWHAT LARGENED COSMIC SCANNER? COSMIC SCANNER GONNA SCAN TEH COSMIC INDEX!? IMAGINE A PR0GRAM THAT TRAVERSES THE MULTITUDE OF SPACE tIME eXPANSIONs

YOYU CANNOT TURN ABSTRACT CONCEPTS INTO CORPOREAL MANIFESTATIONS
YOu cannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnOtttttttttttttttttttttttttttttttttttttttttttttttttTTTTTTTTTTTTTTttttttttttTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT

Name: Anonymous 2012-08-02 15:33

hEY Guys HAVE YOU THOUGHT THAT MAYBE ANIMALS ARE JUST CORPOREAL MANIFESTATIOSN OF ABSTARCT PROGRAMS MAYBE INVENTED IN THE FUTURE AND WE ARE ALL PROGRAMS OPPART OF KOMPUTATIONAL UNIVERSE?! lol it would be EXTREMELY HILARIOUS if that was  the case, which it probably is!!!! LOLOLOLOLOLOLOLOLOLOL!!!!!!!! If you find earth from teh searc space/COSMIC INDEX what happens if you change some values and Contrlo earth creating cteatures and ShiT? youd become  a GODD!!!!

Name: Anonymous 2012-08-02 15:36

somehow i was thinking /prog/ got better after 3 month, don´t know why i thought that..

Name: Anonymous 2012-08-02 15:37

IMAGINE IF RFEALITY IS JUST A REFLIECTINO OF ABSTRACT SHIt? IS THAT AWESOME! YES IT IS! LOLOLoLOLOLOL REALITY IS FUNNY lolLOLOLLLLLLLLL REALITY TRYING TO MAKE UNREAL THINGS REAL AND SUCCEEDING AND YOU GET TO WATCH THE FIGHT BETWEEN THE INFINITELY CALM AND SERENE LOGIC TRYHING TO ORGANIZE THINGZ

Name: Anonymous 2012-08-02 15:39

IS IT REALITY THAT IS FUNNY
OR AM I PERCEIVING IT AS FUNNY

GUESS WHAT

THE ANSWER IS THAT IT DOES NOT MATTER

IT THE SAME THING

LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLO

Name: Anonymous 2012-08-02 15:48

you can make a tree in a similar manner like this/with a framework like this:

public class Tree<E extends Tree<E>>{
E value;
Tree[] children;
Tree parent;
public Tree(E val){
value = val;
}

//code
public Tree getChildren(){
//code
}
public Tree getParent(){
//code
}
public Tree listAllChildren(){
//enumerate children
}
public void addTree(){//adds a tree to the current tree
//code
}
public void deleteTree(){//removes tree from current tree
//code
}
//copy and pasting can be done with adding and then deleting
}

Name: Anonymous 2012-08-02 15:55

There is no corporeal reality. Prove me wrong.

What I'm saying there is no reality. Nothing is real. Come at me, faggot. No, the burden of proof is not on me. You must prove reality exists. Explain how this reality is not just a figment of my imagination. I don't care if this has been done before. I don't care if I lose information. I don't care if this will be repeated throughout eternity. Explain me how reality is distinct from my imagination.

Name: Anonymous 2012-08-02 15:59

Ok, I just googled "proof that reality exists" and came up with this:

1. We perceive things.
2. If we perceive things, those perceptions are due to either entities or an illusion.
3. If perceptions are due to either entities or illusions, either entities or illusions exist (or both).
4. If entities exist, truth exists (because if entities exist, the fact of their existence is true).
5. If truth exists, reality exists (because truth requires a reality to be true about).
6. If illusions exist, falsehood exists (because illusions are false by definition).
7. If falsehood exists, reality exists (because falsehood requires a reality to be false about).
So, illusions can only exist in comparison to reality. If an illusion is all there is, then it's not an illusion: it is reality!



This is only saying 1=1, if reality is my imagination then it is my imagination and if it isn't, it isn't. I need proof that reality is not my imagination. Why do I need proof of that? Because that's what all of you are trying to tell me, my doctor, my mother, everyone. So prove me that you are out there and not in here.

Name: Anonymous 2012-08-02 16:00

Plant a seed.

Name: Anonymous 2012-08-02 16:11

n00bl3t

Name: Anonymous 2012-08-02 21:02

>>13
say something only i could know

Name: Anonymous 2012-08-02 22:43

He might know and you might not know that he knows.

Name: Anonymous 2012-08-03 0:33

>>13
prove me that you are out there and not in here.
It could very well be true. So it would be hard to prove that it couldn't.

Name: Anonymous 2012-08-03 6:33

haha indeed aren't we all quite the intellectuals

Name: Anonymous 2012-08-03 6:52

>>19
fuck you dipshit faggot

Name: Anonymous 2012-08-04 6:07

>>11 thanks but i need a dynamic tree

Name: Anonymous 2012-08-04 6:17

DICKS!
DICKS!
AND PENIS!

I IMPLORE YOU TO AN /PROG/ A BETTER ANSWER! YOU RIVER BOAT TOILET SAUSAGE! BIG BOLONEY TERRORIST MOBILE!

Name: Anonymous 2012-08-04 6:20

sry i talked bullshit, i don't need a dynamic tree just now understood a tree, once again thanks for your help kind man

Name: Anonymous 2012-08-05 19:06

bamp

Don't change these.
Name: Email:
Entire Thread Thread List