Help me, please, to get right collection implementation
I'm in anxiety about what kind of collection I need to choose:
I need to store String names and map them to indecies.
Than I need to get index of name by provide name to collection's method.
I think that HashMap will be big, because List may store objects and have indecies, but I can find an appropriate method to get name index if I want. (except iterate via list elements using iterator).
What do you think will be the best?
I'm in anxiety about what kind of collection I need
to choose:
I need to store String names and map them to
indecies.
Than I need to get index of name by provide name to
collection's method.
I think that HashMap will be big, because List may
store objects and have indecies, but I can find an
appropriate method to get name index if I want.
(except iterate via list elements using iterator).
What do you think will be the best?I vote for java.util.List:
List<String> values = new ArrayList<String>();
String thisValue = "some String that's indexed";
values.add(thisValue);
int thisIndex = values.indexOf(thisValue);Read the javadocs.
%
Similar Messages
-
been sat here for the past 5 hours trying to figure out why itunes wont download, it says error and something to do with Microsoft version? Help me please.. getting a bit bored?
i have this problem too
my dad thinks its because itunes is getting overloaded -
Help me please : Serious problems with collection-mapping, list-mapping and map-mappi
Hi everybody;
I have serious problems with list-mapping, collection-mapping and map-mapping.
Acording to specifications and requirements in a system I am working on it is needed to
get a "list" of values or an indivudual value.I am working with ORACLE 9i Database,
ORACLE 9i AS and ORACLE 9i JDEVELOPER.
I tried to map a master-detail relationship in an entity-bean, using list-mapping.
And this was very useful in order to get a "list" of details, ...but, when I wanted
to get a single value I have some problems with persistence, something about "saving a state"
despite I just want to get the value of a single detail.
I decided to change it to map-mapping and the problem related with a single detail
worked successfully, but I can get access to the whole bunch of details.
May anyone of you help me with that?
I am very confused I do not know what to do.
Have any of you a solution for that problem?
Thank you very much.Have you tried a restore in iTunes?
-
my ipod has broken. a friend has given me her ipod. but how do i get to use as mine. i can erase her songs and i have mine all on my pc in itunes. help me please friends??
It appears that something happened to yur computer/iTunes files. It happens sometimes. To recovery:
- Import the old music into the current iTunes library
- Make sure all the apps are also in the library
- If in the USA and therplaces where iCloud has benn released you can redownload most iTunes puchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
- You can always redownload apps at no additional cost as long as you are singned into the same iTunes account the originally purchased them.
- After all the suff in in the iTunes library, make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPOd under Devices in iTunes.
- Restore the iPod from backup and restore as necessary. -
WILL SOMEONE HELP ME PLEASE I GOT A EMAIL STATING EVERYTHING LOOKED FINE FROM ITUNES END, BUT I CAN NOT USE AND SEE THE MUSIC FROM THE STORE/ HELP
Close your iTunes,
Go to command Prompt -
(Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
(Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
In the "Command Prompt" screen, type in
netsh winsock reset
Hit "ENTER" key
Restart your computer.
If you do get a prompt after restart windows to remap LSP, just click NO.
Now launch your iTunes and see if it is working now. -
HI was wondering if anyone can help me. everytime i update/amend my playlist via my ipod touch 4G and then connect it to my laptop/itunes my playlist reverts back to how it was prior to me updating it. Can someone help me please?
Contact Mercedes if you want to use the dock connector for the the input to the car system. Does Mercedes say it is compatible with your model iPod and its iOS version?
Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
You can get a cable that goes from the headphone jack and an AUX in on the car system if the car system has such an input. -
I can't see right my mails. I have to double-click in my mail for reading it. Otherwise, the only think I can see, is the list of my mails. Could you help me please?
Go to the right side of the list view and place your cursor over the edge until it turns into a double arrow, then click and drag to the left.
If using the Classic layout, go to the bottom of the screen and after getting the double arrow, click and drag up. -
I cannot find the next and previous button in iTunes get info menu?
Is there anyone that has also experienced this problem that can help me please
I have the lates version of ItunesI have managed to figure out how to solve this problem, after looking around I saw a lot of people kept saying makesure it is list view however this still did not work, I found the only way for me get these buttons back was to change the Movie to a TV Show and only then did the "Next" and "Previous" button appear. Right Click> Get Info > Options > Media Kind and then Select TV Show, this is extremely inconvienent but the only way that I found that has worked so far.
Hope this works for you too!! -
Please Help, iTunes has taken my right to play certain songs
Please Help, iTunes has taken my right to play certain songs.
These were free songs with coco-cola codes some time ago.
Now in Mtn Lion it has took the playing rights from me and locked them off!
Anybodys help on this subject is much appreciated...Yes it worked,
Right-click in it > Show in Finder. Finally, right-click in that file > Get Info > Sharing & Permissions. See if you have got read permission,
Clicked through the Get Info > Sharing & Permissions and when I closed the window the song played again.
Not sure why but it worked for me! -
I can not open itunes on my computer. It started when an upgrade appeared. Now I get a message that states This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem. I tried to reinsall the application but it did not help. I also get a message iTunes was not installed correctly. Please reinstall iTunes Error 7 (Windows error 126) Please Help me!
Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
(99623) -
Yes my itunes account was disable because i got charged for unathorized purchases and due to that fact i cannot download any apps or get my music from icloud because my account is disable can you help me please,?
Try contacting the iTunes Store: http://www.apple.com/support/itunes/contact/
-
Help me Please.. I can log on to the Apple website to manage my account and all the information is correct, but I get “Your Apple ID has been disabled” when I try to get something from App Store on my iPad3
I'm from poland.
Thx
BalbiContact iTunes Customer Service and request assistance...
Use this Link > Apple Support iTunes Store Contact -
i have updated to maverick from mountain lion.initially my mac book pro was snow leopard.the multitrack touch pad swapping the page to get back to previous page is not happening in finder,it is only working in safari.please help me how to get that swiping gesture in finder
Hi..
I repled to you here > https://discussions.apple.com/message/25598596#25598596
Please do not start duplicate topics. It makes it that much harder to assist you. -
I updated my iphone 5 to ios 6.something (something about the speakers) to get rid of a notification and it went into recovery mode!!! My photos are not backed up or on icloud. i havent restored yet because i cannot lose my photos/videos, etc. but tinyumbrella wont work to exit recovery mode. HELP! please:(
i tried tinyumbrella (and another similar software) to exit recovery but it only remains on the apple logo stuck there. please is there anything else i can do? i've contacted apple and they have told me the only choice i have is to restore and lose all my data.
my iphone isn't jailbroken and i've updated before without this problem so i'm not sure what has happened. is there anyyy hope please ???First I would try to hold down the power and the home button for about 15sec, but at least as long as the iPhone restarts, if it is still stuck or still in recovery mode then I can suggest you the tool "Wondershare Dr. Fone for iOS", it is both a Windows and Mac tool and I just used it today to get my iPad out of the Recovery mode.
Tell me if any of these options worked for you. -
I upraded my 3G iphone 4s to the ios7 and have had trouble with the speakers working on and off and I would like to know how to get siri and would like to know how to do that so that I may use it in my hands free equipped vehicles can anyone help me please ?
First, this is the Photoshop (full version) forum - you may be able to get more pertinent and specific help down at the Photoshop Elements forum:
http://forums.adobe.com/community/photoshop_elements
Generally speaking, one edits image files then saves the results on one's hard drive, so the photos don't "go into" Photoshop, but rather they are just files on the disk. However, I'm not sure whether you used a feature of Elements I may not be familiar with. You may be best off asking Elements experts.
-Noel
Maybe you are looking for
-
The apple imblen go's on and off wont work un less its plug to a charger
my ipod wont work upless its pluged to my wall caharger when i plug it up to my computer the apple symbol go's on and off
-
Windows XP machine doesn't show up in finder
How can I change this, and then allow screen sharing (We have 3 other computers, which are macs, and they work fine together).
-
NOKIA E75 usb cover problem for me
Hello, I can't seem to know how to open the usb cover to connect the data cable.I mean I NEARLY BOKE MY PREVIOUS PHONE N85s cover as in the E75 case I don't know from where to pull the cover as it is not written in the user guide and I don't want to
-
Hello! i am trying to install adobe flash professional in my mac it will work?
Hello! i am trying to install adobe flash professional to triy it 30 days in my mac! it will work in a mac?
-
Acrobat adobe included in Creative cloud?
I was under the impression that acrobat adobe was included with the creative cloud I purchased? But its not on my list?