Changing the natural order in TreeMap

Hi all,
I'm extending TreeMap that its keys are String and its values are of some object i created. I want the map to be ordered (the keys) alphabetically (as usual) but i don't want capital letters to appear first and only then the small letters - i guess i need Comparator for this.
My questions are:
1. Do i have to make some comparator for this purpose?
2. If so, can u give me a working sample (partial even) - because i tried creating some inner class that will extends Comparator and give it to the TreeMap but it asked me to be static and then it didn't allow me to create a new instance.
Thanks alot,
Snayit

Thanks, haven't tried it yet but i will in a few second, my problem with the inner class is simple - i'm trying to do this and the Eclipse tells me to make add static modifier to the StringComparator instance.
public class Tree extends TreeMap
    private StringComparator stringComparator = new StringComparator();
    public FilesTree()
        super(stringComparator);
    //code here
    public class StringComparator implements Comparable
      //method compareTo...
}Why? what to do, what to do?!

Similar Messages

  • I have three email accounts and want to know how to change the display order.

    I have three email accounts and want to know how to change the display order.

    Install this add on.
    https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/?src=search

  • How do I change the chapter order in itunes 11.0.4?

    How do I change the chapter order in itunes 11.0.4? The book chapters used to look like the playlists in music. You could ;change how it was sorted by the name time, artist etc. Now there isn't a catagory label and the background is the same color as the background of the book photo.

    Trent o
    Someone else in the forum told me how to do this.  If you have Onyx on your system then select Parameters, iTunes and turn off high contrast mode.  If you don't have Onyx, I'd suggest getting it.  It is freeware and used to help maintain your system.  Good luck
    Paul

  • Is it possible to change the dimension order when extracting data from HFM?

    Hello,
    When accessing Consolidation/Extract/Data is it possible to change the dimension order of the extract rather than extracting the standard order?
    I can see you can change the dimension order visually by going to "Reorder dimensions" but this does not carry through to the actual extract.
    If its not possible using this method is there another method? Trying to avoid using smartview for this purpose.
    Many thanks and kind regards,
    Rich

    Hi,
    No, it is not possible to change the order type.
    -Paul

  • Problem in Changing the Service Order Using BAPI_ALM_ORDER_MAINTAIN

    Hi ABAPers,
      I want to change the Service order(<b>TCODE-IW32</b>) Using <b>BAPI_ALM_ORDER_MAINTAIN</b>.But i don't know what are all the
    Parameters needs to be passed.I want to chnage the <b>COMPONENT</b> of the Service Order.Please anyone tell me what all are the
    mandatory parameters should be passed to change the <b>COMPONENT</b> of the Service Order.If anyone has the code Please send me.
      It is very Urgent Kindly help me to Solve this problem.
    Regards,
    Ashok.

    Hi Ashok,
    i am sending u the sample eg thread for bapi create i thnk u can find out the mandatory fields frm tht ...
    check this link though it is for create the mandatory fields and structure will be same .
    Create Order BAPI
    regards
    Sana M.
    reward for useful answers..

  • How do I change the sort order in the file picker?

    Hi there,
    I've recently hit a problem with the Save and Open dialogs in Mavericks. Some how I have changed the sort order within the Column View so that it sorts by modified date and no longer by name. Unfortunately I can't work out how that happened or how to get it back so that it sorts by Name.
    Please could anyone help?

    Normally, you click on this thing (shown below) and select the sorting preference.

  • How do I change the display order in the VPN menu in the status bar?

    Hello,
    How do I change the display order in the VPN menu in the status bar?
    (in the drop-down menu from this icon) ->
    Thanks.

    Hello. Perhaps this is because you are trying to arrange the order of many VPN services, since only one VPN service can be selected at once in System Preferences. In my original post, I did not mean that; I meant that I wanted to arrange the order of VPN configurations within a VPN service. In this screenshot, I have one VPN service only:
    And in the following one, it is shown that there are more than one VPN configurations within that VPN service:
    Furthermore, it was the order of VPN configurations that I wanted to change, not the order of VPN services. If you are trying to change the order of VPN services, I do not have a solution.

  • Change the Purchase Order : Item - Conditions value

    Hi,
    How to change the Purchase Order : Item - Conditions value.
    In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
    How can i change it??

    Hi,
    Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
    MN05 is the Transaction code for Purchase order  condition types.
    Please check and revert back if you need more details.
    regards,
    santosh

  • Change the play order of songs?

    how do i change the play order of songs on my iphone? when i upgrade my iphone on itunes , that puts the last purchase to last on the list and i would listen first. the playlist in inverted. why?

    Which app are you using on the phone to play the music?  That is the one that is probably controlling the order in which the music is played, and if you are using the iTunes app (not application but app) then that may behave in a similar fashion to iTunes application on the computer (I'm guessing).

  • How I can change the z-order of objects?

    Hi,
    I'm creating subform that contains "tabs", I want to change the z-order of the a tab when it's clicked to be on top of other tabs.
    it seems instanceIndex does not work or it wan not mint for this kind of visual effects. 
    Any idea on how this can be achieved?
    BR,
    Yasser

    Simple. Use the reorder button on the toolbar.
    Message Edited by Dennis Knutson on 10-18-2007 03:06 PM
    Attachments:
    Reorder Button.PNG ‏2 KB

  • Help required in BAPI_ALM_ORDER_MAINFm to change the service order quantity

    Hi,
    Can any one tell me Fm To change the srvice order quantity??
    I am using fm

    Hi,
    Can any one tell me Fm To change the srvice order quantity??
    I am using fm

  • How to change the tabbing order of an array of clusters?

    How to change the tabbing order of an array of clusters?  I have the cluster arranged in table in the front panel.   The cluster element goes horizontal and array element goes vertically.   When I press the tab key, the cursor goes to the next array element instead of the next cluster item (down instead across).
    Solved!
    Go to Solution.

    Broken Arrow wrote:
    Harold asked a perfectly reasonable and necessary question, but how is that a Solution ???
    I believe it is called the Socratic Method.
    Sea-Story time
    I had the privledge of working for Ron Davis when he managed the Allegheny District of DEC. He was an ex-WO4 (Highest possilbe rank for non-commisioned officer in US Navy, required act of congress to confirm).
    Ron never answered any question I ever saw presented to him. I remember a group of managers in a frenzy over some issue  running to him to to see what he thought. He asked them a series of questions that lead them to the solution and soon they were smiling and slapping each other on the back as they walked away.
    Who is that has a signature that read "it is the questions that guide us"?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can you change the tab order in Muse forms?

    Can you change the tab order in Muse forms?

    Hi Rebecca,
    By tabs do you mean the form fields? If yes, then you can simply rearrange them by repositioning the other fields using mouse.
    However, the e-mails that are received on submission of the forms show the original sequence of the fields.
    Regards,
    Neha

  • How to change the page order in Microsoft word 2008

    Hi, can you tell me how to change the page order in Microsoft word 2008, thanks

    http://answers.microsoft.com/en-us/mac

  • [svn] 3638: Changing the build order of swc file update with dita xml files .

    Revision: 3638
    Author: [email protected]
    Date: 2008-10-14 16:49:56 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Changing the build order of swc file update with dita xml files.
    By default this would now happen during the checkintests target - so "ant clean main" shouldn't get affected.
    To opt out use -Dno.doc=true
    QA: No
    Doc: No
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml

    Revision: 3638
    Author: [email protected]
    Date: 2008-10-14 16:49:56 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Changing the build order of swc file update with dita xml files.
    By default this would now happen during the checkintests target - so "ant clean main" shouldn't get affected.
    To opt out use -Dno.doc=true
    QA: No
    Doc: No
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml

Maybe you are looking for

  • Completely locked out of my 2 Firewire Drives Please Help

    Hi Both my drives have this infamous lock icon on them, as a result of me applying permissions to the contents of the various system related folders. I have tried running these sudo chflags nouchg /Volumes/"MOVIES STORAGE BACKUP" sudo chmod 775 /Volu

  • Wanboot using s10u3 and http fails with error 416 with a small(ish) flar

    Hi, Using S10 u3 (11/06) to provision a wanboot server fails with a 1.4Gb flash image -- output at foot. The flar is there, perms 644, and I can open it in a web browser. The serverside log in /tmp/bootlog.HOST gives the same information. At OpenSola

  • I need to re-download Lightroom 5 from the cloud

    A chatter from Adobe wants me to re-install LR 5 - the Cloud website has no way to do that - it doesn't know they guy had me trash/uninstall it - where do I get it from since The Cloud thinks everything is fine and I recently "update it"

  • Osx mountain lion compatibility with mso 2011

    if i buy office 2011 will it work on mountain lion when it comes out

  • Import AVI Format

    Beim Import von AVI Files kommt nachfolgende Meldung Fehlermeldung Dieser Dateityp wird nicht unterstützt oder erfordert einen nicht installierten Codec erbitte Hilfe