How to order a Vector added?

Let's say i hav this point system where i retrieved value from the DB and add the points. let's say
the code is:
int x = 0;
int total = 0;
while(x < vVector.size())
  total = Integer.parseInt(String.valueOf(vVector.get(x))) + Integer.parseInt(String.valueOf(vVector.get(x+1)));
  vPoints.addElement(total);
  x = x + 2;
}From the vector vPoints, i want to order all the values that i got and display the 5 highest values.
How do i order the values in ascending or descending?

ooops wrong category, i should have posted this topic in the jsp category.
il post it there.
pls dont reply here. sorry again

Similar Messages

  • Album view in order of date added. Is it possible?

    album view in order of date added. Is it possible?
    In v10 I got used to ordering my music library with the newest additions on top, date added with the album view if it didn't take up more space.
    Now it's just the songs and I really don't like this. Album view is interesting but usless in alphebetical order which seems to be the default.
    I was told by another person here to use a smart playlist but the method they suggested was not clear.
    Can someone please explain how to do this or if there is a better alternative for someone who liked the old song view>date added>with album art?
    -thanks

    Welcome to the Apple Discussions. By "nr" are you referring to the shipping invoice that comes with the book? If so the answer is no. To order a book the library containing the book needs to be used.
    If someone had a copy of the library that created the book initially they could order a book on their own Apple account without you knowing about it. *+BUT they would have to have a copy of the iPhoto LIbrary to do so.+*
    So unless you think someone had access to your computer which housed the library a second copy of the book could not have been ordered.
    OT

  • How to save a  vector art(for example, a circle) in a plugins?

    I want to write a plugin, and in it user can draw
    vector art, how to save this vector art in vector format ?

    If they need a vector object. Photoshop is not really the right program. Illustrator would be a better choice.
    In Photoshop the only formats that support vector are psd, pdf, and ai.
    Psd and pdf would create vector objects that would be more beneficial to someone using Photoshop.
    The ai format is the only true vector format that others can use. However it only exports paths and therefore can only be found in the paths panel. The issue is Photoshop does not apply a stroke or a fill to that path. If someone is not aware of that, they would think the document is blank.
    This file would have to be opened in illustrator and give the path a fill or stroke then save it.
    The reason pdf does not work as expected is the format supports both raster and vector objects. The creator of the file has to be very careful to use vector objects only. If you load the file into illustrator there is the possibility that it will not open. When illustrator saves a pdf it can embed an ai file into the pdf so it can open it. Photoshop can embed a psd file into a pdf but not an ai file. Illustrator requires the embedded ai in order to open the file.
    This is a long drawn out way to say Photoshop is not the right program, but it helps to understand why.

  • Achieve the tab order for dynamically added section

    Hi friends,
    I'm facing the issue with tab order.
    How to achieve the tab order for dynamically added sections?
    Could you Plaese suggest me in this.
    Thanks,
    Susila S

    Hi,
    Thanks for your reply.
    Ya. I'm adding rows in a table dynamically which is grouped in a subform which is flowable and the buttons are placed in the same subform. At the end of the row I'm having the hidden fields.
    So what I want is without focusing the tab on hidden field I want to traverse the first field of the next dynamic row. For that I have used the access property as protected on hidden field, but its not working properly.
    Please help me on this ASAP.

  • IDOC for Creation of Production order and also adding components

    Hi ,
    I have a requirement like I get the data from a 3rd party system and using that i have to create production orders and also should be able to add more materials in COMPONENTS part of that Production order. I was looking for a BAPI which can handle this process.
    And also can any one help me by letting me know is there any Message type available for handling this process of Production order creation and Adding extyra components to it.
    I have a  message type LOIPRO (for Production Order) and associated function modle CLOI_MASTERIDOC_CREATE_LOIPRO for creation of master IDoc, but not sure can i handle the Components part in this.
    Please do send replies ASAP, its very urgent.
    Or else atleast suggest me the other ways of doing this .
    Also send me any BDC program if anyone has already developed for this.
    Thanks
    Kumar
    Edited by: Phani Kumar Peddagopu on Mar 19, 2008 6:56 PM

    Resolved .

  • How many recipients can be added to one enqueue procedure?

    Hi all,
    Does anybody know how many recipients can be added to one DBMS_AQ.ENQUEUE procedure?
    According to a user's guide of Advanced Quing, it seems that we can have 1000 "local queue" subscribers and/or 32 "remote database" subscribers.
    But I'm not sure this restriction is also true to the recipient list which I just declare when I enqueue messages. (I didn't do ADD_SUBSCRIBER.)
    Also, I wander what does the remote "database" mean. At first, I thought it meaned totally different database instance (we need to use DB link or something to connect it), however, it seems that we can't add more than 32 remote queue subscribers.
    I'm using 10g R2.
    Any information on this matter will be highly appreciated.
    Thanks,

    Hi,
    I think there is some confusion between users and subscriber for a queue. Subscriber which dedicatedly point to queue and users who have privilege to dequeue the message. If you are not using ADD_subscriber that means you are connecting to queues as a user with dequeue privilieges.

  • Hi , I have just created an iphotobook and when i moved on to order it , it could be only shipped to Australia and U.S.As, I live in Greece do you have any idea of how to order it and deliver it in Athens, Greece ?

    Hi , I have just created an iphoto book but when I was about to order it , i realised that iphoto books can only be shipped to Australia and USA . Does anyone have any idea how to order and deliver the book in Athens , Greece ?????

    No 
    Here is a list of the countries supported for print products  --  http://store.apple.com/us/help/print_products/routing
    in teh past I have seen some people report that they were able to pick a nearby country and use their shipping address - I have not done this and have no idea what the results were
    LN

  • How to order the photos in a slideshow

    how to order the photos in a slideshow

    Just like for any other photo - select the photos in the album and use the command "File > Order Prints".
    Be careful, not to include any text slides. If it is difficult to select the photos in the slideshow, create a new album from the photos in the film strip (File > New Album).

  • How to order / group a report by a placeholder column ?

    How to order / group a report by a placeholder column populated by the group filter ?
    In more detail .....
    My Data model editor's select statement brings back (say 1000 rows) from the database.
    The group filter decides (on performing certain validations) whether to print a row or not in the report.
    Additionally the group filter calculates a "rule type" (just a rule number to say on basis of what rule, the row was selected)
    I would like to order/group the report on the placeholder column which was calculated by the group filter ?
    Obviously, I won't be able to add the "ORDER BY :CP_RULE_NUMBER" in the sql statement as the placeholer column cp_rule_number
    is determined by the group filter level only. (If I do, I get a frequency error)
    Any ideas ?
    Thanks in advance.
    Edited by: user553361 on 8/10/2008 17:35

    how is the group filter implemented?
    If its pure PL/SQL, what about putting the filter-procedure in a stored function into the database? Then you could use the group filter in your query.

  • How Production Order finish date and time is being comptued by SAP?

    Hello Expert,
    How Production Order finish date and time is being comptued by SAP? for example, we create a Production Order via CO01, the basic start date is 29.09.2008 and time is 04:00 it gives us basic finish date is 29.09.2008 and time is 13:28.
    how does SAP compute the time 13:28 as it finished time
    Please explain me briefly.
    Thanks
    Ryan

    Hello Guys,
    When we create Production Order in R/3 the time is calculated by routing but it is extended at SetUp machine time. It is not correct?. SetUp imachines time used only for first Production Order for the same product and it is plan manually, for others Production Order we need calculate time for production without SetUp machine time being pick up to compute finish time. how could we achieve this? only those Machine time will be check.
    thanks

  • How do i copy text added to a protected pdf and save in word.

    how do I copy text added to a protected pdf and save in word?

    More details would be helpful. What security restrictions are there, exactly? Do you know the password? Do you want to copy all of the text in a document, or just some?

  • HT1399 I have an ipod shuffle 4, my playlist is in alphabetical order on my itunes, when I go to add it to my ipod it puts it into order of "date added", under "View" i can change it, but when I sync it, it immediately reverts back?!!

    I have an ipod shuffle 4, my playlist is in alphabetical order on my itunes, when I go to add it to my ipod it puts it into order of "date added", under "View" i can change it, but when I sync it, it immediately reverts back?!!

    Yeah - not really. Sorry - but you will need to get it fixed so you can back it up. You are going to want to Restore your new iPhone from that backup when you get it, so it will really be worth it.
    As soon as you get your new iPhone, set up automatic iCloud backups, or if you don't have Wifi, then it is really important to get into the habit of backing your device up weekly to iTunes.
    Best of luck!
    GB

  • How to get the Newly added fileds from Oracle to BW

    Hi ,
    We have created the view in the DB side and extracted the data to BW side. After that in the DB side they have added new filed. I want to extract the data for that filed also. But that filed is not displaying in the data source itself. We have deleted the sources system assignment to that particular info source and generated the data source in the source system side, and then also I an unable to get the newly added filed in the data source. We are extracting the data from the ORACLE data base. Please let me know the steps how to get the newly added filed in the data source.
    Thanks,
    Visu

    Hi Yadav,
    yes i have alreday created the info objects in the BW side. In the Oracle DB i can see the fileds in the data sources. Newly added filed is not displaying where as previous all fileds are displaying in the oracle DBside.
    Thanks,
    Visu

  • Very urgent :how I order by my report within the report option not change i

    Hi master
    Sir I design the report but I need my report order by cheq_no now my report order by voucher no but If I change in query then my format must be change that very problem for me I again design
    Is any option in report through which I order by my report as per my require column I is if I need on cheq_no , voucher_no or date
    Please give me idea how I order by my report within the report option not change in report query
    Thanking you
    aamir

    Use a lexical parameter (see online help):
    select ...
    order by &sort_parameter

  • How to use a vector to navigate my database? please help me.. ty

    how to use a vector to navigate my database? please help me.. ty

    Quite unclear request�
    Can you provide more details?

Maybe you are looking for

  • Menu problems in IE and Chrome

    Okay, the site is www.rainbowmorganhorseassoc.com. I'm having 2 different issues with 2 different browsers, only it's not me having the issues, it's others. Everything is working fine for me in the same versions of the browsers, so I'm having difficu

  • Can't get itunes to connect to airport express via air tunes

    Hi, I just bought and installed an airport express (for windows 7) everything is now connected but i can't get itunes to recognize my airport express via air tunes. I can see the multiple speakers in itunes, but when i click on it to connect to airpo

  • Need help on procedure

    Hi, can anyone explain me whether i need to make any changes to my procedure or it is perfectly fine. /*WHENEVER SQLERROR EXIT FAILURE; SET VERIFY OFF; --SET SERVEROUTPUT ON;*/ CREATE OR REPLACE PROCEDURE sample_ord_sync_wrapper AS DECLARE    l_reque

  • Slide show in imovie

    I am trying to make an imovie from pictures that I have in iphoto.  The pictures that I am using are about 25 years old-not the best quality but still good.  When I look at the movie in preview it all all looks good.  Once I burn the dvd the quality

  • I've changed my mail box and the adress on App Store is not updated I cannot get any new app... How could I update it too?

    My adress mail has not been updated in the App Store as I've changed it in Apple. I can't reach any new App now