API which can sort array in decending order

hi all,
i just want to know is there any API available in Java which can sort an array of integers in desending order

http://www.google.co.uk/search?hl=en&q=java+quicksort+API&btnG=Search&meta=
will bring this right up:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html

Similar Messages

  • Workflow API which can be used to avoid sending notification to user

    Hi Folks,
    We want Workflow API which can be used to avoid sending notification to user for particular type of error.
    Say we are using following API which are used to send notification to mailbox as soon as program run into error.
    wf_core.context(c_v_package_name
    ,c_v_func_name2
    ,p_event.getEventName()
    ,c_v_task_id_prompt||l_n_task_id
    ,l_v_msg_data);
    wf_event.seterrorinfo(p_event, c_v_result_error);
    Now we want to restrict certain type of error to send as a notification however we want to keep this record in wf_notifications table for further investigation.
    Thanks and Regards,
    Javed Khan

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

  • Is there a CUCM API which can be used to see what calls are in progress?

    Hello All,
    I am trying to build a basic monitoring application which will display a list of calls in progress along with endpoint information such as IP address etc
    Is there a CUCM API which can be used to see what calls are in progress?
    Thanks
    Matt

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

  • Does Windows have some APIs which can let an application access an LBA in a storage device directly

    The Windows users perform operations in the file level, for example, create a file, read data from a file, write data to a file, and so on.
    However, a storage device only understands the LBA (logic block address). It can only write data to LBAs or read data from LBAs. 
    I think it is the Operating System (and File System) which converts those file-level operations into LBA-level operations. 
    Is there any APIs in Windows that the users can use to access the LBA in an storage device directly?

    Hi lixxx988,
    Welcome to msdn forum.
    This forum is to discuss problems of Application Compatibility for Windows Desktop Development . Your question is not related to the topic of this forum.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sort array in rank order

    how can i sort the numbers in rank order i.e. there are 5 random numbers displayed 1 5 2 4 3. i would like to sorth these numbers into rank order 1 2 3 4 5
    import java.io.*;
    public class random {
    public static void main(String args[]) {
    try {
    PrintWriter out = new PrintWriter(new FileWriter("random.txt"));
    java.util.Random rand = new java.util.Random();
    for (int i = 0; i < 20; i++) {
    out.println(rand.nextInt(10));
    out.close();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    try {    
                FileReader fr = new FileReader("random.txt");
                int i;
                while((i=fr.read()) != -1) {
                   System.out.print((char)i);
                fr.close();
          catch(Exception e) {
               System.out.println("Exception \n" + e);
    }

    can a mod close/delete this topic!!!
    do not reply to this one!!!

  • Need to know Account Alias Issue API which can be used

    Hi,
    I am trying to implement Account Alias issue using package. Please let know API if anybody is aware of this API.
    Thanks in Advance..

    Don't think this is anything to do with SQL or PL/SQL.
    I guess you need to try an Oracle Apps forum.

  • Are there some API which can turn a integer number to a char?

    for example ,convert 1 to '1',
    thanks

    Hi, try this:
    public class int2char
      public static void main(String[] args)
        int d=8;
        String s=Integer.toString(d);
        char c=s.charAt(0);
        System.out.println(c);
    }

  • How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    Events are organisation for those who can't really be bothered. They are automatic - based entirely on Date and Time the camera records the photos as taken.
    You can move photos between Events, you can Merge Events, you can Rename them and sort them in various ways except one: You cannot manually sort in an Event as Events are all automated.
    If you want to manually sort in an Event then you've outgrown Events as an organising tool. Now it's time to look at albums (Where you can manually sort) which are much more flexible than Events as an organising tool.

  • How can I get (using API) the current sort column for some report

    hello,
    How can I get (using API) the current sort column for some report ? For example something like "fsp_sort_1_desc" - if the user sorts by the first column ?
    I cannot use the :REQUEST for this, sometimes the current sort column is not in the :REQUEST, but it is still active.
    I thought it was posssible by using
    APEX_UTIL.GET_PREFERENCE (
    p_preference IN VARCHAR2 DEFAULT NULL,
    p_user IN VARCHAR2 DEFAULT V('USER'))
    RETURN VARCHAR2;
    function, but I don't really know which preference should I pass as parameter.
    looking in WWV_FLOW_PREFERENCES$, i saw preferences_names like FSP4000_P527_R6281510839654570_SORT , I'm not sure how this name is formed.
    I'm using generic columns for that complex report (which has a flexible number of columns shown), and the idea is that sometimes I have to overwrite that sort column, in case the user chose the version of the report with fewer columns than the previous one.
    Can I get (using API) a list of all preferences set for some user ?
    Thank you,

    seems that it is FSP<app_number>P<pagenumber>R<regionnumber>_SORT.
    is there anyplace where I can get these kind of things documented ?
    Thank you.

  • Sorting a two dimensional array in descending order..

    Guy's I'm a beginning Java programmer. I've been struggling with finding documentation on sorting a two dimensional primitive array in descending order.. The following is my code which goes works, in ascending order. How do I modify it to make the list write out in descending order?
    class EmployeeTable
         public static void main(String[] args)
         int[][] hours = {
              {2, 4, 3, 4, 5, 8, 8},
              {7, 3, 4, 3, 3, 4, 4},
              {3, 3, 4, 3, 3, 2, 2},
              {9, 3, 4, 7, 3, 4, 1},
              {3, 5, 4, 3, 6, 3, 8},
              {3, 4, 4, 6, 3, 4, 4},
              {3, 7, 4, 8, 3, 8, 4},
              {6, 3, 5, 9, 2, 7, 9}};
         int [] total = new int [hours.length];
         for (int i = 0; i < hours.length ; i++){
              for (int j = 0; j < hours.length ; j++){
                   total[i] += hours[i][j];
         int[] index = new int[hours.length];
         sortIndex(total, index);
    for (int i = 0; i < hours.length; i++)
    System.out.println("Employee " + index[i] + " hours are: " +
    total[i]);
    static void sortIndex(int[] list, int[] indexList) {
    int currentMax;
    int currentMaxIndex;
    for (int i = 0; i < indexList.length; i++)
    indexList[i] = i;
    for (int i = list.length - 1; i >= 1; i--) {
    currentMax = list[i];
    currentMaxIndex = i;
    for (int j = i - 1; j >= 0; j--) {
    if (currentMax < list[j]) {
    currentMax = list[j];
    currentMaxIndex = j;
    // How do I make it go in descending order????
    if (currentMaxIndex != i) {
    list[currentMaxIndex] = list[i];
    list[i] = currentMax;
    int temp = indexList[i];
    indexList[i] = indexList[currentMaxIndex];
    indexList[currentMaxIndex] = temp;

    Bodie21 wrote:
    nclow all you wrote was
    "This looks to me like a homework assignment that you're asking us to solve for you. Your description of what it does isn't even correct. It doesn't sort a 2d array.
    You would probably elicit better help if you could demonstrate that you've done some work and have something specific that you don't understand."
    To me that sounds completely sarcastic. You didn't mention anything constructive besides that.. Hence I called you a male phalic organ, not a rear exit...Bodie21, OK, now you've got 90% of us who regularly contribute to this forum thinking your the pr&#105;ck. Is that what you wanted to do? If so, mission accomplished. Many will be looking for your name next time you ask for help. Rude enough for you?

  • HT1040 why can i not seem to order more than one print at a time, which obviously becomes expensive with the shipping, it does not seem to offer me the facility to choose again?

    why can i not seem to order more than one print at a time, which of course becomes expensive with shipping, it does not seem to offer me the facility to choose again? either order or cancel!

    make an album containing the photos you wnat to print, select all photos in the album  and order
    LN

  • I am contemplating purchasing an iPad, and then possibly a Macbook pro.  Currently, I have an iMac G5, and a Powerbook G4.  Neither which can be upgraded past Leopard.  My question is do I need to have Snow Leopard in order to be able to update an iPad?

    I am contemplating purchasing an iPad, and then possibly a Macbook pro.  Currently, I have an iMac G5, and a Powerbook G4.  Neither which can be upgraded past Leopard.  My question is do I need to have Snow Leopard in order to be able to update an iPad? Do I need to reverse my thought on which to buy first?
    I plan on keeping the iMac and PB until they cease to work ( have replaced HD's on both already).  I mostly use the PB-- lots of writing, surfing, email, etc.
    Your thoughts?

    The minimum Mac specs (from http://www.apple.com/ipad/specs/) are :
    Mac computer with USB 2.0 port
    Mac OS X v10.5.8 or later
    iTunes 10.2 or later recommended (free download from www.itunes.com/download)
    iTunes Store account
    Internet access
    So you only need Leopard, not Snow Leopard

  • Unable to sort profit center as ascending & Decending order in KE80 & KE30

    Hi,
    When viewing KE30/KE80 reports and navigating by a field such as profit centre, appear to be unable to sort in ascending/descending order.
    e.g. run a KE80 Report: i.e. ZPC-9000 & i.e. variant SMKT, and execute the report click on "Profit Center" under the navigation line to navigate it out to the right. Then click on the magnify glass next to the PC number (should bring up the list of all available PCs, 1259 entries found).
    From this pop-up box, unable to sort the PCs by ascending/descending order regardless of what you click.Also unable to sort the Long Text by ascending/descending order regardless of what you click
    Can anyone pls help on the above issue.We have to apply any note for this???.
    Thanks & Regards
    Mani

    Dear Mani,
    you can sort the entries by right-clicking on the column header and chosing the sorting order in the appearing menu.
    Cheers,
    Daniela

  • Parents need an ipad2/3 holder like otter box which any tripod can be screwed into in order to video childrens events. It must have gear type adjustments for verticle and horitontal ajustments due to weight of ipad

    Parents need an ipad2/3 holder like otter box which any tripod can be screwed into in order to video children's events. It must have gear type adjustments for vertical and horizontal adjustments due to weight of ipad

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Which user exit can be use before production order creating?

    which user exit can be use before production order creating?
    i want to check AFPO data,then show error message before production order creating.
    1.i try to use PPCO0001( enhancement when saving the order) to check AFPO data, then show some error message,sap system will generate a abap down error.
    2.i try to use PPCO0007(Exit when saving production order),
    i can show error message,but i can't check AFPO's data.

    Hi,
    You can access AFPOD structure using field symbols.
    Try below mentioned code in routing:
    constants: c_afpod TYPE char30 VALUE '(SAPLCOKO1)AFPOD' .
    FIELD-SYMBOLS: <fs_afpod> TYPE ANY .
    data: wa_afpod TYPE afpod.
    ASSIGN (c_afpod) TO <fs_afpod>.
    wa_afpod = <fs_afpod>.
    Then later you can use wa_afpod in exit PPCO0007. Hope this will work for you.
    Sumit

Maybe you are looking for