Unsure what data structure will work best??

okay heres the scenario
i have 4 strings per element and i need to store these within a data structure, the number of elements is not to be fixed
is it possible to store an array within an arraylist or vector?
when i tried to implement the vector it seemed to work fine until i tried to display the element, heres my code
Vector vectorDetails = new Vector();
String[4] arrayDetails = new String(4);
details[0] = nameText.getText();
details[1] = nameText.getText();
details[2] = nameText.getText();
details[3] = nameText.getText();
String[] s1 = (String)details.lastElement();
String[] s2 = (String)details.firstElement();
whenever i print s1 or s2 i get the same information, regardless of the amount of elements i have
sorry i couldn't post more of the code, but its on the large size, but if anyone can help i would be much appreciated

okay, now i am really confused, how did i get from a vector to a hashtable??
to be honest i dont think that structure will work with my GUI
the way it stands i have five buttons across the top, standard buttons, i.e. new, add, search, edit, delete
at the bottom i have four buttons, firstElement, previousElement, nextElement, and lastElement
in the center of the screen i have my textfields were i enter the details and also view each individual persons details, as such i will need access to each individual string
at present i have two classes, EmailContactDatabase.java & Person.java so i will need to pass the persons details back and forth
any further help would be much appreciated
note this is a university assessment, so i am not looking for specific code, just some pointers to get me in the right direction
note note the structure as i pointed out in an earlier post does NOT have to be dynamic, i can set the maximum number of elements.

Similar Messages

  • I have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    i have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    You just need a powered hub.. if you already use one then fine.
    Plug in just about any external hard disk will work fine. Format has to be readable by the TC.. ie fat32.. or much better HFS+.. plug it into a Mac to prepare the drive.
    Pick whatever size suits.. nowadays 2TB are most economical.
    WD, Seagate have goobled up all the minor players.. so pick one.
    Whatever suits your budget and asthetics.
    NOTE.. The USB on the TC is fine for printers.. IMHO it is the wrong way to go with USB disks.. use the internal disk of the TC.. USB is less than half the native speed plugged into a Mac.. TC to USB is slow.. far slower than internal drive.. or using external drive as external.

  • What online photo storage will work best with icloud?

    I have 2 laptops and a iMac plus 3 iPhones and one iPad. Currently we have our photos all over the place, (20,000+).
    What online photo storage will work best with the future icloud? looking for the best integration and security.

    Thanks for the link.  I'd seen that.  I have indeed formally submitted feedback via Apple formal process.  I've even called Apple Care (had coverage under one of these boxes) and they put me in touch with Pro Apps.
    All those folks could do was register my concern/complaint because there is NOTHING being provided within Apple that answers the question "what about my Aperture online gallery capability?".
    If you happen to see a link offering any specific guidance or relevant migration solutions from abandoned MobileMe/Gallery users and customers and fans, please post it.
    I shall do likewise.
    Since I can't activate iCloud services until I abandon MobileMe, and I won't abandon MobileMe and commit to all the migration time and effort until I'm convinced that replacement solution will be around for more than a few months, right now, I am caught in an Apple-caused chain of dependencies that leaves me quite frustrated!  Therefore, my search continues in earnest -- the part of the solution that concerns me most?  How many Apple software products that I've come to depend on are now obsolete or incompatible.....iWork, iWeb, iPhoto and Aperture all come to mind as potential victims to Apple's latest "progress"!

  • What size still images work best for iMovie to create a book trailer?

    I'm trying to create a book trailer using still images and text in iMovie. I purchased some 280px images from gettyimage and find they are too small. When viewed on a full screen the images are degraded. What size still image works best to make a book trailer in iMovie that will be posted on You Tube. Thanks in advance. I am an iMovie newbie.

    iM supports a max. export resolution of 1920x1080 pixel ..
    if you need to add Ken Burns effects, res should be, of course, higher..
    no such thing as 'dpi' with video, only absolute pixels count ..
    due to the many conversion processes happening on import, processing and export, care for as less compression as possible for the imported files ..
    this YT-demo is done in iM09 with some pics from my Lib, native res of originals is ~6Mpix/~3MB size/jpegs ..
    ahh, and Welcome betinski61 to the  iM boards ...

  • HT1349 which Sound Dock Music System will work best with my new iPod Touch 5th genertion

    Which Sound Dock Music System will work best with my new iPod Touch 16GB 5th generation ?
    I have been reading on line about how many don't. So what does. This was one of the main reasons I bought it. Will it work in one of the Bose Sound Dock Systems ?

    paula393 wrote:
    There will be no problems connecting. I am hearing that there are connection problems with the5th generation iPod Touch to the Sound Docks. As well, which systems will produce the best sound?
    I have heard of no such problems with connection. 
    Regarding sound, it's simply a matter personal preference.  My suggestion is to go to the nearest Apple Store and try out a couple.  Each of the products at the store have passed an extensive vetting process.  The Specialists are willing to work with you and may even open a box or two.  Don't be unreasonable and expect to spend a half-day opening all the different models.  In other words, don't abuse their willingness to provide stellar customer service.
    Better yet, direct your eyballs to the store shelf or the Apple website.  That's really all you need to know.

  • What dj mixer will work well with my iMac os x lion 10.7. I have installed virtual dj and djay apps.

    what dj mixer will work well with my iMac os x lion 10.7. I have installed virtual dj and djay apps.

    what dj mixer will work well with my iMac os x lion 10.7. I have installed virtual dj and djay apps.

  • What external modem will work with Satellite L500-1XL running Windows 7

    Hi,
    When in Spain I need to use dial up to the internet via Telefonica.
    I am assuming the L500-1XL does not have an internal modem?
    What external modem will work with the L500-1XL running Windows 7 ?
    Many thanks in advance for your help.
    A

    Hi
    Youre right Satellite L500 doesnt have an internal modem so you need an external one.
    I think you can buy every modem that is at least compatible with Vista. Alternative ask your authorized service provider or favorite computer dealer
    Friend of me has good experience with 56K modem from USRobotics like this one:
    [USRobotics 56K USB Faxmodem USR5637|http://www.amazon.co.uk/USRobotics-56K-USB-Faxmodem-USR5637/dp/B0019LZCEI/ref=sr_1_1?ie=UTF8&s=electronics&qid=1269253039&sr =8-1]

  • What cribbage game will work on macbook OS 10.6.8

    what cribbage game will work on macbook OS 10.6.8

    Barbararose,
    a quick search turned up two (of course, there may be others):
    GrassGames’ Cribbage
    Gus Lindquist’s Cribbage Plus!

  • Which camera will work best with the MAC? NIKON or Canon

    Contemplating on buy a camera and a MAC, but need to know which camera will work best with a MAC, Nikon or Canon? Any info is appreciated

    Both will work very well. You might not even need to install the software that comes with them because they'll probably work fine with iPhoto etc. Before you buy a camera, check this list of cameras supported by OS X:
    http://support.apple.com/kb/HT3825
    Just about all Nikon and Canon cameras are on that list. If a camera is so new it is not yet on that list, it will be in the next update, probably.
    That list is for raw format compatibility. If your camera also shoots JPEG, it will work with a Mac even if it's not on that list. If a camera doesn't work by plugging in a cable, take the card out and put it in an ordinary USB card reader and the Mac will read it.
    Nikon has a slight advantage in that it supports a mode that lets the Mac mount a camera like a disk on the desktop. Canons don't mount on the desktop, but it's not really a disadvantage, because Canons still work great with Apple iPhoto, Apple Aperture, Apple Image Capture, and Adobe apps, and all of those are more efficient ways of transferring photos than dragging them out manually.

  • Which dock will work best - attach to this bracket in my car?

    Which dock will work best - attach to this bracket in my car?
    Here is a pic of the bracket. I haven't figured out how to post pictures here yet.
    http://tinypic.com/r/9q8qw1/3

    Btw, it's an iPhone 3GS.

  • Slimline s5-1010 - HDMI graphics card upgrade, what graphics cards will work in slimline box?

    Slimline s5-1010 - HDMI graphics card upgrade, what graphics cards will work in slimline box?  Cheap will do, under 100.  Has 1 PCI Express x16, but the slot on back of pc looks about 2" too short for this?

    Hi-
    I think you will find there are more users of the ATI Radeon 9800 that DON'T have a 300w PSU, than those that do. It would leave out the majority of the G4 line if it were absolutely necessary. As I see it, it isn't absolutely necessary, and, it is also the ONLY higher end upgrade graphics card commercially produced for 2x, 4x AGP systems, most of which, DON'T have a 300w PSU.
    My Sawtooth has a 237w PSU, and the 9800, and my processor upgrade, and 2 internal drives, all work just fine!
    As for the piggyback connection, that is how you connect the power to the 9800. A splitter molex cable is used to split power from the superdrive connection, between the superdrive and the 9800.
    G4 AGP(450)Sawtooth   Mac OS X (10.4.8)   2ghzPPC,1.62gbSDRAM, ATI9800, DVR-109,(IntHD)120&160,LaCie160,23"Cinema Display

  • HT3310 what wireless headphones will work with a third generation ipod?

    What wireless headphones will work with a third generation ipod classic?

    The third generation iPod classic does not support BT.
    If you meant the 3G iPod touch thenyou need a pair that supports:
    Advanced Audio Distribution Profile (A2DP)
    Audio/Video Remote Control Profile (AVRCP)
    iOS: Supported Bluetooth profiles

  • What data structure is better?

    hello all!
    i would like to ask you a suggestion.. i am implementing a project in JSP+java in mvc and i have still not understood what data structure would be better to do the following:
    i have "Catalogs" of entities (e.g. payments) where each one is composed by several double data. the structure of the site is that the jsp talks to its Bean which in turn talks to the controller (normal java class- no servlet) which finally ask the data to the entitiy class. How could i pass these vectors of datas to the jsp page without let it talk directly to the entity? I think that bean+jsp are MVC's boundary classes and i don't want them to talk with entities (and then they cannot directly use entity methods as bill.getAmount())..
    How could i do?
    Thanks a lot! Bye

    I use PNG as it is smaller than TIF and holds transparencym unlike JPG.

  • What ram will work best with....

    Hi guys, i dont know that much about computers but i was wondering if you guys could give me some input on my setup.
    I plan on having:
    Amd athlon 64 3000 or 3200 (undecided)  
    MSI K8N Neo2 Platinum motherboard  link to mother board --->  http://www.pccyber.ca/scrItem.asp?product_subtypes_id=127&product_types_id=14&product_id=4257
    Ati radeon 9600 xt
    Now my question is that what ram would suite this best. The following link is a list of ram from a store near me:  http://www.pccyber.com/scrMain2.asp?product_types_id=20
    I was wondering if anyone could look at that page and list the good ram from cheapest to most expensive (dont have to list it all just the best cheapest to the best most expensive)
    Also any extra things i would need to get for the combo to work better? Things i would need to edit/change?
    Thanx in advance  

    Thx for the reply's only problem is that i live in canada and not all websites deliver that far without huge costs and taxes. I also prefer buying it from store incase something goes wrong.
    The corsair mentioned is quite pricy and i was wondering if there was anythign cheaper from my previously mentioned website that would work well.

  • What SSD drives will work in the GT60 0NE?

    I'm about ready to give up on my GT60.  I have purchased two different SSD drives and neither one is recognized in the bios when placed in the first drive slot.  They are recognized in the 2nd drive slot, but not the first.  I've updated everything, bios and firmware.  Will someone tell me what model and brand SSD drive will work int the GT60?  When the operating system is install in the second drive slot, i can't use the first drive slot for data because it won't boot windows.  So, i have to leave the first drive bay empty.  Tech support could not help me.

    Quote from: maximus216 on 10-February-13, 21:51:49
    I'm about ready to give up on my GT60.  I have purchased two different SSD drives and neither one is recognized in the bios when placed in the first drive slot.  They are recognized in the 2nd drive slot, but not the first.  I've updated everything, bios and firmware.  Will someone tell me what model and brand SSD drive will work int the GT60?  When the operating system is install in the second drive slot, i can't use the first drive slot for data because it won't boot windows.  So, i have to leave the first drive bay empty.  Tech support could not help me.
    It's rather difficult to recommend a drive....
    What drives did you already try?
    Are you trying to use the SuperRaid drives?
    Do you need a normal 2.5" drive or mSATA drives?
    Honestly, any drive should work, it just may not work perfectly. For instance, Samsung 840 Pro drives are known to only operate at SATA II speeds, even when installed in the SATA III slot.
    Any Sandforce 2281 based drive should work fine. Intel 520 series should work well, along with 530 as well.

Maybe you are looking for