How can I create a hashmap() with multiple values for the same key?

I am trying to write an application that will us something like a Map() with multiple values but some have the same key. Is this possible?

i had the same question. just create a List, add all the values u want to it, and then put the List into the map like u would a normal single value. e.g.
List list = new ArrayList();
list.add(value1);
list.add(value2);
map.put(key, list);
i bet u r doing the same course as i am =)

Similar Messages

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • HOW CAN I CREATE A GROUP WITH MY CONTACTS FOR TEXTING

    HOW CAN I CREATE A GROUP WITH MY CONTACTS FOR TEXTING

    Olga, this is not a default feature in iPhone. You need a 3rd party application. I have created a free one, Easy Group, for group texting and group emailing.
    http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • How can I create a new E-mail address for the Marketing Manager

    Hullo,
    how can I create a new E-mail address for the Marketing Manager (i.e. marketing professional role in SAP CRM) please.
    That when you go and create a new E-mail campaign you need to choose an E-mail form in addition to the E-mail address of the Marketing Manager.
    Kind Regards.

    Hi Alhussien
    Add it to his Position in the Organisational Model. Transaction PPOMA_CRM.
    Under there address section is an option to populate the email address.
    Regards
    Arden

  • How can I install one app on multiple iPads at the same time?

    We have a volume purchasing account, but when purchasing an app we get multiple serial numbers that all seem to need to be entered individually. The iPhone config Utility will not sync multiple iPads at the same time. Am I missing something? This cannot be the method for mass deployment, it seem too complicated.

    You can do a  backup of you iPad then restore the backup to many devices.
    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    Mobile Device Management Solutions for iOS
    http://www.apple.com/iphone/business/integration/mdm/
    http://www.apple.com/ipad/business/resources/
    "iOS mobile device management (MDM)
    With an unmatched breadth of features, a Self Service console forover-the-air (OTA) distribution of in-house and app store apps, and integration with Apple's Volume Purchase Plan (VPP), the Casper Suiteallows administrators to easily achieve the four major tenets of iOSmobile device management: Inventory, Configuration, Security Management, and App Distribution."
    http://jamfsoftware.com/products/casper-suite/

  • How can i select some row from multiple row in the same group of data

    I want to select some row from multiple row in the same group of data.
    ColumnA        
    Column B
    1                  OK
    1                   NG
    2                   NG
    2                          NG
    3                          OK
    3                          OK
    I want the row of group of
    ColumnA if  ColumnB contain even 'NG'
    row , select only one row which  Column B = 'NG'
    the result i want = 
    ColumnA         Column B
    1                         NG
    2                   NG
    3                          OK
    Thank you

    That's some awful explanation, but I think this is what you were driving at:
    DECLARE @forumTable TABLE (a INT, b CHAR(2))
    INSERT INTO @forumTable (a, b)
    VALUES
    (1, 'OK'),(1, 'NG'),
    (2, 'NG'),(2, 'NG'),
    (3, 'OK'),(3, 'OK')
    SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
    FROM @forumTable f
    LEFT OUTER JOIN @forumTable f2
    ON f.a = f2.a
    AND f.b <> f2.b
    GROUP BY f.a

  • How can you develop photo galleries with multiple pages using the web module?

    Going through the web module I can see there are many options for developing a web page with a single collection of photos.  How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?

    This thread will give you several ideas.
    Re: How do you embed a gallery into an existing website?

  • How can I share my ical with other users on the same machine?

    Having recently bought an imac I set up accounts for the family. I'd like to share a generic calendar with everyone that only the adults can read/write, but want to allow everyone to hold their personal calendars at the same time. All the accounts are on the same machine. Can this be done? If so how?

    You can only do this by syncing your calendar to an external server - MobileMe is designed for this but if you don't already have a MobileMe account you can't start one now.
    If you do have a MobileMe account the method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/sharedcalendar.html#publicshare
    If you don't, you could sync to Google Calendar (Google accounts are free) or wait for iCloud which should be out in a couple of months and will probably provide this sort of facility.
    You might like to consider BusyCal which is like iCal Pro - similar to iCal but with extra facilities. It can sync calendars on a Lan and also between accounts on the same machine (you have to have fast user switching enabled).
    There is a free trial available on their website: it's slightly cheaper from the Mac App Store. (I have no connection with this company).

  • How can I sync firefox bookmarks with safari bookmarks on the same computer

    iMac running OS 10.5.8.
    When I add bookmark it goes to Firefox but not to Safari. How can I make it do both??
    Thanks

    Hi,
    Yes you can as long as you have two seperate user accounts on your computer. Hope this helps.
    xxmitchxx90

  • How can I differentiate between iPad and iPhone iMessages for the same contact?

    I have my sister in law's email and phone number all in the same contact. She iMessages me from both her iPad and her phone. They come up as two different iMessage conversations, but they both are under her name. When I go to text her I don't know if I'm sending it to her iPhone or iPad. Anyone know if there's anyway to differentiate? Sometimes looking at what was previously said in the conversation helps but I can't always remember (nor do I know which device he was messaging me from in the previous convo). Thanks all

    Try scrolling to the top of the conversation and tapping Contact.  You will then see the originating address highlighted in blue on the contact.  If the iPad and iPhone are creating two different conversations, chances are if the email address is highlighted it's coming from the iPad; if the phone number is highlighted it's coming from the iPhone (although not necessarily).  To know for sure you would have to ask her to check Settings>Messages>Send & Receive and tell you which is checked under "Start new conversations from" on both devices to know for sure.

  • How can I create a sub down menu specific for the first down down menu response

    I want to create a survey that has a drop down menu, for example first listing the state. Based on the answer the next drop down menu will only have the cities in that state selected to choose from

    Hi,
    You may want to use the skip logic rule (available to paid users), https://www.acrobat.com/formscentral/en/library/skip.html
    You will not be able to automatically change the second drop down choices , i.e., show/no show based on previous response, but with skip logic rule you could create multiple drop down fields so that each one of these drop down fields will only show based on the previous response.
    Hope this helps,
    Thanks,
    Lucia

  • Can we have multiple transports for the same object.

    Hi guys,
    Can we have multiple transports for same object in dev system. Can anyone tell me how can this be done.
    Thanks

    Its not possible for the same development object. Only 1 person can access an object at a time and if mutiple users modify an object new TASKs are created under the same TRANSPORT.
    Only after releasing the tr you can create a new tr on the same object.
    Message was edited by:
            Abhishek Jolly

  • How can I create drop shadows with PSE10

    How can I create drop shadows with PSE10 & PE10?

    Layer styles let you quickly apply effects to an entire layer. In the Effects panel, you can view a variety of predefined layer styles and apply a style with just a click of the mouse.
    Three different layer styles applied to text 
    The boundaries of the effect are automatically updated when you edit that layer. For example, if you apply a drop shadow style to a text layer, the shadow changes automatically when you edit the text.
    Layer styles are cumulative, which means that you can create a complex effect by applying multiple styles to a layer. You can apply one style from each style library per layer. You can also change a layer’s style settings to adjust the final result.
    When you apply a style to a layer, a style icon appears to the right of the layer’s name in the Layers panel. Layer styles are linked to the layer contents. When you move or edit the contents of the layer, the effects are modified correspondingly.
    Once you choose Layer > Layer Style > Style Settings, you can edit the settings of a layer’s style or apply other style settings or attributes available in the dialog box.
    Lighting Angle Specifies the lighting angle at which the effect is applied to the layer.
    Drop Shadow
    Specifies the distance of a drop shadow from the layer’s content. You can also set the size and opacity with the sliders.
    Outer Glow Size Specifies the size of a glow that emanates from the outside edges of the layer’s content. You can also set the opacity with the slider.
    Inner Glow Size Specifies the size of a glow that emanates from the inside edges of the layer’s content. You can also set the opacity with the slider.
    Bevel Size Specifies the size of beveling along the inside edges of the layer’s content.
    Bevel Direction Specifies the direction of the bevel, either up or down.
    Stroke Size Specifies the size of the stroke.
    Stroke Opacity Specifies the opacity of the stroke.

  • How can I create a solution with Livecycle

    I work for a high school and we have about 12 pdfs that we need parents to read/scroll through, then 10 (different) pages that we want them to print, complete and return to the school.  Finally, we want them to see a "Thank you, you have done all you have to do" type screen.  We want to make it as user friendly as possible so I was thinking...
    Reading pages, 1 at a time with next at bottom.
    Click next and it takes them on.  When they get to printing pages 1 print button prints all pages we need them to print. Click next, and it takes them to optional print pages.
    Click next and it says, thank you.
    How can I make this happen if I already have all the pdfs?
    Help please.
    John Dent
    [email protected]

    Thank you soo much.  A few questions?
    They weren't created in designer but could I just import all of them?
    How do "build the structure" for the naviagtion?
    Where/how do you add the script.
    Thanks again,
    John Dent
    Date: Fri, 30 Jul 2010 07:01:08 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I create a solution with Livecycle
    I assume that all of these PDFs were created in Designer. If so you can add any buttons that you want to appear on every page (Next, Previous) onto the Master page then there is script you can add to the buttons to actual move the pages (xfa.host.pageDown() and xfa.host.pageUp()). The Prin button can be added to the specific page and you can pass the page numbers that you want to print as a parameter to the print command. Lastly when you get to the last page and the click Complete you can display a messageBox with your Thank you message.
    Hope that helps
    Paul
    >

  • How can I create a query with tables in INFOSET?

    Dear Gurus,
    How can I create a query with tables in INFOSET?
    Just tables and fields INFOSET?
    Kind Regards,

    Hello
    Check following SCN Article for your understanding/reference:
    - [Using Infoset Query ,SAP Query and Quick Viewer|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10eab7af-0e54-2c10-28a5-87b47adbe1a5]
    Regards
    JP

Maybe you are looking for

  • How to get the user created when I prepare for the BD Identity Manager

    Hi I have a query, I need to get a backup database Identity Manager 9.1, I have a problem I do not remember user created to perform the backup, how can you know that I created when I made the installation of Identity Manager, or how can I find

  • Viewing RAW images in Bridge CS3

    After downloading a EOS Canon picture (*.CR2) the Bridge shows the picture correct in thumbnail mode (1). Switching to Viewing screen mode (2)  the RAW picture starts somewhat blurry but within a few seconds it switches to a clear picture. Recently t

  • MAC iPod Connected to a PC

    I mistakenly plugged my MAC iPod into a PC. I now know you can't do that. This mistake resulted in an automatic install of the windows iTunes software. Now I can't access my 1500+ songs. I've already tried doing a recovery with Recover4all on the PC.

  • The SOLUTION to bad iDVD Photo Quality

    I have been a fairly silent member of this forum for a long time now, and have seen many supposed "solutions" with the known issue of how iDVD compresses, and ultimately destroys, image quality in DVDs. Granted, much of this compression is normal, co

  • How to control instrument switch through PCI-6503 & 50-pin I/O connector

    Hi, everyone: I have a problem in controlling an instrument switch which switch position between zero point and measuring point every five minutes during experiment. The hardware used is PCI-6503 card & corresponding 50-pin I/O connector, cable and t