LinkedHashMap problem (Same key but different value)

Dear Friends,
There is problem in LinkedHashMap for same key but different values.
I want both values of same key as Output.
Plz help me from an example code & it's output
LinkedHashMap<Object, LinkedList<Object>> linkhash = new LinkedHashMap<Object, LinkedList<Object>>();
LinkedList<Object> ll6 = new LinkedList<Object>();
          LinkedList<Object> ll7 = new LinkedList<Object>();
          LinkedList<Object> ll9 = new LinkedList<Object>();
objectName="Listitem";
          ll6.add("id\tlisti");
          ll6.add("tag\tlistcell");
          ll6.add("tag\tlistcell");
          linkhash.put(objectName, ll6);
          System.out.println("List is "+linkhash);
          objectName="Listcell";
          ll7.add("id\tlistc");
          ll7.add("label\tCEO");
          linkhash.put(objectName, ll7);
          System.out.println("List is "+linkhash);
          objectName="Listcell";
          ll9.add("id\tlistc1");
          ll9.add("label\tNKC");
          linkhash.put(objectName, ll9);
          System.out.println("List is "+linkhash);
output is
List is {Listitem=[id     listi, tag     listcell, tag     listcell]}
List is {Listitem=[id     listi, tag     listcell, tag     listcell], Listcell=[id     listc, label     CEO]}
List is {Listitem=[id     listi, tag     listcell, tag     listcell], Listcell=[id     listc1, label     NKC]}
I want output as
List is {Listitem=[id  listi, tag  listcell, tag  listcell],Listcell=[id   listc, label CEO], Listcell=[id     listc1, label  NKC]}
Plz help me
Thanks Friend
Edited by: kkcnkc on Apr 1, 2009 6:47 AM

Double post. Locking.

Similar Messages

  • PFCG, two roles with the same object but different values

    Hi, Can you help me?
    I need to know if it's possible have two roles like this:
    role A - Object werks = L001 and LIKP-LFART = LF
    role B - Object werks = L005 and LIKP-LFART = ZLF
    If the some user have role A and role B it's possible that he doesn't have authorization for werks = L005 and LIKP-LFART LF?
    Thanks
    Dora

    I guess you made fat figure on the words: "it's possible that he doesn't have authorization for werks = L005 and LIKP-LFART ZLF", right?
    If so, it is impossible.
    When SAP doing the authorization check, it call the function "authority_check", input the Object, the filed and the value to check.
    if some one have role A and B, SAP will check authority both in Role A and Role B.
    What you need to do should be separating the Object into a subrole and assign it separately.
    >
    Jorge Sousa wrote:
    > Hi, Can you help me?
    > I need to know if it's possible have two roles like this:
    > role A - Object werks = L001 and LIKP-LFART = LF
    > role B - Object werks = L005 and LIKP-LFART = ZLF
    > If the some user have role A and role B it's possible that he doesn't have authorization for werks = L005 and LIKP-LFART LF?
    >
    > Thanks
    >
    > Dora

  • Query parameters with the same name and different values

    According to HTTP, multiple query or post parameters with the
    same name and different values are permitted. They are transfered
    over the wire in the following format -
    name1=val1&name1=val2&name1=val3
    The problem is that I can't see anyway of assigning multiple
    parameters with the same name and different values to the request
    object of mx.rpc.http.HTTPService. I have tried using the
    flash.utils.Dictionary object as it does strict key comparison but
    that doesn't work too. I have tried setting an array of values to a
    property of the request object but that sends the request to the
    server in the following format -
    name1=val1,val2,val3
    The java servlet engines throw exceptions when they see this.
    Any help would be greatly appreciated.

    If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
    release.
    wrote:
    I have an html select box that contains several values, and multiple
    selection is enabled. When my code runs as a remote portlet, the
    following is showing up in the soap monitor when I select multiple
    values and submit the form:
    <urn:interactionParams>
    <urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
    <urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
    <urn:value>true</urn:value>
    </urn:formParameters>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}">
    <urn:value>beatest1</urn:value>
    </urn:formParameters>
    In this case, I selected beatest1 and beatest2, but only beatest1 comes
    through to the remote portlet. Is this a known bug, and, if so, is
    there a patch or workaround available?
    Thanks in advance,
    Andy

  • When importing songs of a same album but different artist iTunes will separate the artists. How can I bring all together in the same album?

    When importing songs of a same album but different artist iTunes will separate the artists. How can I bring all together in the same album?

    Generally setting a common Album Artist will fix things. For deeper problems see Grouping tracks into albums.
    tt2

  • I would like to transfer music from my account to my wife`s on the same Mac but different users, i want her to have her own i tunes account but now that she has downloaded all of her stuff in my account , she has to "erase and sync"  how can i troublshoot

    I would like to transfer music from my account to my wife`s on the same Mac but different 2 users (hers and mine), i want her to have her own i tunes account but now that she has downloaded all of her stuff in my account , she has to "erase and sync" all of her stuff when she opens her account which has nothing in it!, how can i send stuff from my i tunes account to hers? same computer different users, how can i trouble shoot please help!!??

    how do i share then? can she upload music if we share it somehow?
    If so how??
    i am also having the same problems now with IPhoto, she has all of her/our pics in my IPhoto library.
    I have told her that now i have bought her the Ipad she would have to log into her user, the only thing is there is no music in her itunes account nor photos in her I Photo library, i have spent all day trying to find a way to "share" but no luck,
    Please help i`m going mad!
    Surely we could just share these...?
    I need step by step instructions please someone send me a link on "how to share pics and music!"

  • Importing files with same name but different extensions

    Hope I will be clear enough.
    Lets say that instead of sending a file from Lightroom to an external editor, I open it directly in Photoshop.
    When I'm done, I save the edited photo using the same name but in a different file format : IMG_1333.cr2 > IMG_1333.psd or IMG_1333.tif, and selecting the same folder location.
    Then, I come back into Lightroom and synchronise the folder.
    Why is the knew version of the picture not showing up beside the original file, despite the different extension ?
    I notice that the different extensions ( .psd or .tif ) are recorded in the sidecar files field in the Metadata panel.
    Of course, everything works fine if the file name is modified ( or just by selecting the "copy" option in Photoshop's "save as" dialog box ). Lightroom synchronise dialog shows the new photo to import.
    So, why is Lightroom not making a difference between files with the same name but different format extensions ?
    Thanks for any hint :-)
    Gilles.

    Gilles-
    I think your problem is likely that you have the option to stack the copy with the original turned on. First, right-click on one of these photos and go to the stacking menu. If Unstack is not grayed out then you have a stack -- select Unstack to reveal all copies.
    To change the automatic stacking of edited copies from Photoshop, when you next choose to edit a file, in the bottom left corner of the dialog is the check box for unstacking. Clear it, and that choice should "stick" until you change it again.
    Hope this helps!
    Tony

  • Any solution to unable to retrieve purchased apps in a new iPad - using same Apple ID, same country but different payment method.

    Any solution to unable to retrieve purchased apps in a new iPad using same Apple ID, same country but different payment mode?

    Hello there, Tag2011.
    The following Knowledge Base article offers up great information on the process of downloading a previous purchase:
    Download past purchases
    http://support.apple.com/kb/ht2519
    Particularly useful in your instance:
    Before you begin
    Sign in with the Apple ID that you used for the original purchase.
    See which Apple ID you used to download an item.
    See if the content is available for redownload. Previously purchased items might not be available if they're no longer on the iTunes Store. If you changed your Apple ID from one country to another, you can’t download items you purchased in a previous country.
    and then to download again:
    Apps
    Tap App Store.
    If you're using an iPhone or iPod touch, tap Updates, then tap Purchased.
    If you're using an iPad, tap Purchased.
    Find the item that you want to download.
    Tap the Download icon. After the app downloads, you can open it from the Home screen.
    If you can't find the item that you purchased in the iTunes Store, report a problem with the item. You can report a problem with a purchase made within the last 90 days.
    If you have a problem with an older purchase, contact iTunes Store support.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Two database with the same sid but different ORACLE_HOME on one host

    two database with the same sid but different
    ORACLE_HOME on one host,and if configure them with
    two differnt lisnter staticaclly,this abosultely work
    because in the lisnter.ora we must provice
    ORACLE_HOME variable,with this ORACLE_HOME the client
    can differentiate which database to connect,but if
    use dynamically register feature,how can the client
    tell which database to connect?

    Also note that this type of configurtion may not be supported.
    Just because a given configuration works in certain given conditions does not mean that it would be supported.
    If this setup is for a configuration that has any value, please also Contact Oracle Support to get their inputs on what you are trying to accomplish.

  • How can I let firefox save usernames/passwords for multiple subdomains that use the same username but different passwords?

    on a particular website that has sub domains I have multiple accounts with the same name but different password. Firefox seems only able to save one of them, because they are on the same site.

    "Things"?  What things?  Apps for keeping track of when to change cat litter?  30 different versions of "twinkle, twinkle little star" played by everything from punk rockers to Gregorian chant?  Videos on the best way to make Christmas cake?

  • OBIEE report based on same criteria but different view based on filter

    Hi,
    I am trying to create a report in OBIEE 11.1.1.5 where In the same report using the same criteria, I can have different views which applies different filter.
    Suppose, I have a report criteria as
    Dim1, Dim2, Measure1, Measure 2.
    I want to create two pivot view based on the same data.
    One view will be showing data Dim1="Value1". The other view is duplicate of this view but will show data Dim1="Value2".
    Is it possible in OBIEE?
    basically what I want is work on the same dataset but different representation and show them in the same report. Please share your opinion.
    Regards,
    Tanveer.

    Hi,
    You create a new dim dummy column in criteria and in presentation level create new pivot table view use this dummy dimension column and filter with dim1=value2.
    give updates on this.
    Mark if Helpful/correct.
    Thanks.

  • HT3819 How do I share my itunes library with my mother on the same computer, but different accounts?

    How do I share my itunes library with my mother on the same computer, but different accounts?
    My mother and I share a desktop computer (apple) and we have seperate itunes accounts. How do we share accounts?

    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597
    You could set up two completely separate libraries and share music via Home Sharing.
    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189
    Chris CA's instructions on sharing one iTunes music library between multiple user accounts - https://discussions.apple.com/message/8974074 - Multiple users using a single library file - similar post at: https://discussions.apple.com/thread/3753008
    Suggestion by Turingtest for multiple users and one library - http://discussions.apple.com/message/9117622 - use smart playlists and tags to isolate groupings.
    Discussions on using purchases from multiple AppleIDs in one iTunes library - https://discussions.apple.com/message/19543804

  • How can i share photos on the same mac but different users?

    how can i share photos on the same mac but different users? we have different iphoto acounts and just want to be able to look under users in the finder and view another users iphoto.

    You may try moving ur librarie to the folder /Users/shared if and link it to iphoto from there
    You may locate and link libraries from arkiv-->change library in iphoto

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • APM how to create APM application group for same application but different application paths

    Hi all,
    We have few applications which are of same name but different application path.
    Please check the screenshot. When we create different application groups using APM wizard, we still get errors mentioning the conflict. How to resolve this issue.
    Thanks
    Manish
    Manish

    I cannot see any screenshot here, what do you mean same application name but different path?

  • Three types of restaurant menus with same dishes but different prices.

    Hi,
    I have to artwork three types of menus for a small restaurant chain. These menus have the same dishes and same background but different prices per restaurant. I will be sending three high res PDFs to print and would like to know if there is a way of doing this without creating three versions of the menues. I know I could create layers and have a layer per restaurant with the text boxes on, turning off and on as I create my PDFs for print but can I have text within the text block that I can turn on and off? Two text blocks, one with prices and one without, is not an option becaues the text all needs to run round together. The reason for this is if a dish needs to be amended it only has to be done once to the master dish. I hope this makes sense.
    Many thanks!

    Hi Guys,
    Thanks very much for your speedy responces!
    With regard to the data merge method I am not sure this would work for me because there is a lot of text and I need them to flow from page to page so would need all the text and prices in one text block (I hope I have understood your method correctly MW Design!). I have just had a look at the Conditional Text method and that seems as though it might work for me but one issue I might have is if one dish is removed form a menu all together then the text will run up from another block. I am sure there is a way once I have the master menu done to force the text to the next text block after the last dish I want on that page and then enlarge the text block a little to accommodate any movement of the dishes on that page, I will look into that!
    Thanks very much for your help.
    PS InDesign never ceases to amaze me!!

Maybe you are looking for

  • How to add network information for failover zones with logical hostname?

    Hello! As stated in [http://docs.sun.com/app/docs/doc/819-3069/ds_template-21?a=view] I must not configure network addresses for a zone when I manage these with a logical hostname: If you require the SUNW.LogicalHostName resource type to manage all t

  • WLC 5508 and Cisco Aironet 1242 LWAPP AIR-LAP1242AG-A-K9

    i have deployed wlc 5508 ( image 7.0.98.0 ) with 1262N AP and all 45 AP's are working fine, at the same site i had AP1242 which i have converted to LWAPP (8 of them), these accesspoint are registerd perfectly with 5508 but non of the radio's are up.

  • KE27 Trasfer to COPA

    Hi Gurus, After closing Material ledger closing, once revaluation done through KE27 to COPA, the value is not matching with Material ledger. One FG with reference to the sales order i am getting variance value  in material ledger which is not matchin

  • Passing a variable value from one query to another within a web template

    Hi All, I have a web template with two queries.  Both queries have the same select option variable called ZSELCUST on the characteristic ZCUSTOMER but because they are different info providors (both infocubes) the customer has to be entered once for

  • ACE: probe with serverfarm not working

    Hello When i use one probe configured for port 8080 with serverfarm which users realservers port 8080 everything works fine. But i wanted to create one generic probe and use for all of my serverfarms. I hoped that this generic (tcp probe) probe will