Welcome to Dream.In.Code
Become a Java Expert!

Join 149,614 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,857 people online right now. Registration is fast and FREE... Join Now!




how to do it

 
Reply to this topicStart new topic

how to do it, servlet,java,jsp

scarecrowfeild
20 Aug, 2007 - 02:44 AM
Post #1

New D.I.C Head
*

Joined: 14 Jul, 2007
Posts: 33


My Contributions
Hi!
i am thinking of develop a simple quiz games using,servletHttp to control the session and jsp for the user interface.Then i need to keep the games question using binary tree.
1.Do i need database for the question then the binary tree solely for determining the question?or do i just need the binary tree.
2.Then how to build the binary tree containing string instead of integer?how to connect the node since it does not involving numbers.
thanks.
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: How To Do It
20 Aug, 2007 - 04:29 AM
Post #2

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
you define the binary tree yourself, a simple object containing a String and node element... it's a little different than C/C++ but it can be implemented to respond in the same way.

just a thought, why would you store the values in 2 places if you don't need to?

please show us an attempt and we can help you out along the way.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:27AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month