Results 1 to 4 of 4
  1. #1
    newbee is offline Member
    Join Date
    Apr 2008
    Posts
    1
    Rep Power
    0

    Default Putting code together.

    I have an assignment to put together a list of countries and their language and which continent they are located at. I have to design a menu and give users options to select subset of countries thru the menu, all in one continent, countries with similar languages, etc. I also have to give user an option to search for countries.

    I am not sure how to put them all together. Are there sample codes out there I can look at to get an idea about my project? I was told to use binary trees. What do I use for menu?

    Any help is appreciated.

    Java Newbee

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Well, you should know the basic data structures and the behavior behind the linkedlist implementation if you attempt to use binary trees...

    If you really not sure how to deal with it, try to make three arrays...
    store the 3 values in the same element... ( just for an experiment )...

    Update us,
    sukatoa

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I think the best way is follows data structures. Rather dealing with arrays, it's really easy as well as much safer way.

  4. #4
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

Similar Threads

  1. Putting your own type in a Set
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-15-2008, 07:32 PM
  2. I need help fixing my code.. or non code?
    By MrHuggykins in forum New To Java
    Replies: 1
    Last Post: 03-19-2008, 10:12 PM
  3. Here is my code, can anyone here help me?
    By Java_Man in forum New To Java
    Replies: 1
    Last Post: 02-16-2008, 02:41 AM
  4. Putting controls in arrays?
    By Cymro in forum New To Java
    Replies: 4
    Last Post: 02-01-2008, 06:54 PM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •