Finding the multiple indexes of a same value

Hi
I have one query,i have 2 main arraylists one arraylist consists of all the indexvalues with the duplicate values and another arraylist consists all the index values without duplicate values.now if i want to find an index of a specified indexvalue from the duplicate arraylist how can i perform,,, here is the example
MAIN chkList size IS HERE::::::::100
MAIN chkList IS HERE::::::::[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1
5, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 1, 2, 3, 4, 14, 15, 16, 17, 18, 19, 2
0, 5, 6, 21, 22, 23, 24, 25, 1, 2, 7, 8, 9, 10, 11, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
uniqueIndexList size IS HERE::::::::100
uniqueIndexList IS HERE::::::::[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1
4, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 3
4, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5
4, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 7
4, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 9
4, 95, 96, 97, 98, 99]
for example in the above if you see the value 24 in MAIN chkList it is repeating 4 times... but i wanted to keep this into a new arraylist like it should be arraylist of arraylist like if i request 24 from the new arraylist then i should get the all the indexvalues list for that search criteria.
how can i do this,plz help me,i am new to this
regards
rao

Tell us more. What ideas have you had yourself? What do you think is right or wrong about the ideas? Have you tried anything? If so, tell us, provide the code if it's not too voluminous, even if it's far from working. Noone can guide you if all we know about where you stand is "i am new to this".

Similar Messages

  • It seems that many (if not all) of my files have been replaced by older versions. I kind find the multiple versions (listed in the Search as in the same dir) and restore them but this is strange. There is no chance that another user here has done a restor

    It seems that many (if not all) of my files have been replaced by older versions. I can find the multiple version including the most recent version using the Search, however, they show up in the same directory even though Finder only shows a single copy. I am able to save and then overwrite in order to restore but this is strange. There is no chance that another user here has done any sort of system restore action (at least intentionally).

    I can find the multiple version including the most recent version using the Search, however, they show up in the same directory even though Finder only shows a single copy.
    In a OS Extended (HFS) file system there is no way you can have two files with identical names in the same directory.
    Of course who knows what spotlight is thinking of most of the time when it does its stupid searches (get Find any File instead) and lists its results?  Are you sure it is listing the same directory or do you have a backup and it is finding it there and you aren't noticing it is two different volumes?
    You could also try reindixing the volume.  Add it to the Spotlight system preferences Privacy and then remove it.

  • [svn:fx-trunk] 5002: Fix up the lookup in DataGroup when finding the appropriate index in the dataProvider given a particular renderer .

    Revision: 5002
    Author:   [email protected]
    Date:     2009-02-18 16:33:42 -0800 (Wed, 18 Feb 2009)
    Log Message:
    Fix up the lookup in DataGroup when finding the appropriate index in the dataProvider given a particular renderer. With this fix, we now correctly support FxLists's displaying and interacting correctly with duplicate items in the dataProvider, a la:
            Flex
            Flex
            Flex
    The lookup now goes through the itemToRenderer data structure which holds the on-screen renderers.
    Reviewer: Ryan
    Tests: Checkin, yes. Mustella tests: DataGroup, FxDataContainer, FxList, FxButtonBar pass.
    QA: Yes, lets get tests for this added to FxList testsuite
    Doc: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • When we can find the multiple queries in view logn

    hi all
    wen can we find the multiple queries in view log
    thnks
    Sreedhar

    Hi,
    Is this what you are asking?
    http://gerardnico.com/wiki/dat/obiee/nqlogviewer
    Close your previous thread assigning points
    Regards,
    Srikanth

  • Finding the multiple JRE installed path in Linux OS

    for my requirement on finding the JRE installaiton folder on windows and Linux machines , I can able to get it in windows but I am facing problem in getting the jre installed path from Linux machine. I am using Debian etch OS. Can anyone help me to find the installed path of JRE in Linux machine using a Java program. I need to find the multuiple JRE installed paths, i.e. my java program should find all the JRE installed paths and versions of the same.
    Thanks in advance.
    Edited by: VijayForumScreen on Jul 29, 2008 5:46 AM

    As per the terminal prompt its ok...but i need the java concept to retrieve the versions and installed paths of the all JRE.
    e.g;For current JRE we can get by,
    System.out.println(System.getProperty("java.version"));
    System.out.println(System.getProperty("java.home"));
    Output:
    1.5.0_10
    /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre
    If i installed 1.3 and 1.4 also.,
    How can i get installed paths and versions for all three 1.3,1.4 and 1.5 JRE's

  • Module pool ---Problem in finding the line index for the table control

    Hi Friends,
    I am working in Module pool programming.
    My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
    Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
    Thanks
    Satish Raju

    Hi Raju,
    Follow the steps
    <li>U should take one variable in your internal table or in structure which is used for table control fields.
          DATA :BEGIN OF itab OCCURS 0 ,
                mark TYPE c ,
                matnr LIKE mara-matnr ,
                matkl LIKE mara-matkl,
                maktx LIKE makt-maktx,
            END OF itab .
       controls: tabc types tableview using screen 100.
    <li>This mark variable should be given in Table control properties. follow the path
    double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
    <li>Flow logic of the screen
       process before output.
         MODULE status_0100.
         LOOP AT itab with control tabc
         endloop.
       process after input.
         module cancel at exit-command.
         LOOP AT itab.
           MODULE read_table_control.
         ENDLOOP.
         MODULE user_command_0100.
    <li>read_table_control module code
         MODULE read_table_control INPUT.
         MODIFY itab INDEX tabc-current_line."this will update the itab table
                                             "mark field with 'X ' whatever we
                                             "have selected on table control
         ENDMODULE.
    <li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
       CASE okcode.
         WHEN 'DELETE'.
           LOOP AT itab WHERE mark = 'X'.
             DELETE itab.
           ENDLOOP.
       ENDCASE.
    I hope that it helps you.
    Thanks
    Venkat.O

  • Why is the returned internal table contains same values?

    Hi all,
    I got a bapi that returned an internal table type MARC.
    For testing in R/3, the internal table returns 3 material no. with different values,
    but in vb.net, it returns 3 entries with same values,
    (I've passed the internal table as ByRef in the vb)
    what's wrong are there?
    Thanks.

    Please post your test code.

  • Finding the correspponding IDoc No's for values in a segment of the Idoc

    Hi,
    I have around 100 work order numbers, based on which I want to find out the failed Idoc numbers. These work order numbers are part of one of the segment fields in IDocs. I know the message type of the IDocs.
    I do not want to use transaction WE09 as it would be too time consuming, entering one work order number and finding the correspponding IDoc. Is there a way of finding all the correspponding IDoc numbers for the work order numbers that I have at one go.
    Any help would be greatly appreciated.
    Thanks and Regards,
    Mick

    Thanks Raja.
    But I dont want to write a report. I was just want to get the IDoc numbers using a table or a function module. Any idea if using Transaction SE16N can help?
    If yes how should I go about it, as I have already tried querying table edid4 passing all the work order numbers. But no result. What I have observed is that the data is stored in the field application data in the table and to get data querying the table, passing the work order number might not be possible. As the application data contains a lot of other data also.
    Regards,
    Mick

  • Finding the row index of a value in a JTable ..

    I have a JTable with one of its column containing a list of "unique names" Strings ....
    example:
    column1 | column2
    name1 | val1
    name2 | val2
    I want to create a method which returns me the line number of a name...:
    public int rowIndex(String name)
    return line;// The line where the String name is found...
    any help ?

    Well, its not really efficient but it should do it:
    traverse the rows with for and get the value with getValueAt (row, column). At every iteration you test if the specified value is found.
    hope it helps
    Leander Eyer

  • Where can I find the multiple node block

    I am looking for the symbol that takes the negative and positive peakc and outputs one signal to measurement file:
    Figure 4.
    http://zone.ni.com/devzone/cda/tut/p/id/4644#toc1
    Solved!
    Go to Solution.

    If you're referring to the small yellow block between the big two blue blocks on the right-hand side of Figure 4 of that document, then that's the Merge Signals function. It should be in the Express -> Signal Manipulation palette.

  • Difference between open loop and closed loop mode when finding the index on a stepper motor axis.

    I have a test system which uses a PXI-7352 motion controller with a MID-7602 stepper motor drive to position a 200 step/revolution stepper motor with an attached 1000 line encoder.  The MID-7602 is configured for 64 microsteps per step, giving 12,800 microsteps and 4000 encoder counts per revolution.  The system is controlled using LabView 7.1 and NI-Motion 6.13.  To home the motor, I've defined a sequence in MAX which first finds the reverse limit switch and then moves forward to the encoder index pulse.
    When finding its reference in open loop mode, the system its reference at the same microstep each time.  When findings its reference in closed loop mode, the system finds its reference somewhere within about a 20 microstep wide range.
    I hope somebody out there with more experience with this controller can describe the difference between finding the encoder index in open loop mode and finding the encoder index in closed loop mode. 
    Thanks,
    Mark Moss

    Hello Mark,
    I suspect that the behavior you are experiencing has today
    with the resolution difference between your encoder and your
    microstepping.  Let me illustrate with an
    example:
    Example Setup
    Stepper
    Motor
    NI
    Motion Controller
    10
    steps per encoder pulse (Every 10 steps the controller gets an encoder
    pulse, therefore positions 0-9 all appear to be 0 to the controller)
    The
    system has a maximum of 3 pull in moves set
    Open Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    Closed Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    The
    controller checks its position and sees that it is still at position 0
    because it has not received an encoder pulse.
    Because
    the controller thinks it is still at position 0, it sends another 9 pulses
    as its first pull in move.
    The
    motor moves to position 18.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends1 reverse pulse
    as its second pull in move.
    The
    motor moves to position 17.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends and additional
    single reverse pulse as its third pull in move.
    The
    motor moves to its final position of 16.
    I believe something similar is happening with your
    application as it looks for the index pulse. 
    Because the controller does not compensate for what it perceives as
    position error in open loop mode, the motor always goes to the same commanded
    position.  In closed loop mode, the motor
    is bouncing around inside the single index encoder pulse trying to find a
    certain position.
    There are several recommendations I can make towards
    correcting this behavior.  These
    recommendations are in order of effectiveness:
    Setup
    your system so that there are more encoder counts per revolution than
    steps per revolution.
    Turn
    off pull-in moves by setting them to 0 in MAX.
    Use an
    open loop configuration.
    Play
    around with the pull in window in MAX.
    Regards,
    Luke H

  • How can I find the element with the closest value to a calculated "target value" in a 1D array?

    Hello all,
    may be the following question is very simple, but I am relatively new in labview and it would be great if somebody could help me:
    I have a acquaried 1D array of data-points. Now, I have to find the element in this array which value is the closest to a calculated "target value".
    After finding the element with the value close to the "target value", I have to get the position of this element (i.e. the index) in the 1D array.
    Now, I have to use this index to find and extract the element at this position in an other 1D array.
    It would be very nice if somebody could help me with this problem.
    Thank you,
    beam

    Find attached a sample vi that you can modify.
    Attachments:
    select_target_value.vi ‏22 KB

  • How to find out the current index

    Hello Experts,
               How to find the current index and whatever we entered in that table how to ratrieved that entry value.pls give the suggest..

    Hi,
    To get current index write below piece of code in the outbound plug for your F4 help pop up.
    We have to write this in the outbound plug itself otherwise it will not work.
    let me know whethere it worked or not
    cl_chtmlb_config_utility=>outbound_plug_event_info( EXPORTING iv_event_string = lv_event_string
                                                          IMPORTING ev_index        = gv_index ).
    Regards,
    Swapna

  • Multiple index.hmtl files

    Can you tell me if I'm heading for trouble. I have created 2 sites which are linked through the Navigation menus. I've exported to a folder and now wish to upload them to a non .mac account. In the main folder named "AOS web" i have an index file then two folders for the 2 sites I created. In each of those folders there is and index file. Can anyone tell me why this is and is it going to cause problems, shouldn't there only be 1 index file. I have upload this same project to my .mac account and it works fine.

    I can't access the home page or contacts
    No problem for me to see Home, Information, and Contact US. Try clearing your browser cache or using a different browser.
    The multiple index.html files is completely normal for iWeb sites.

  • Multiple base load in same Hyperion Application

    Need to have some clarity over the multiple base load in same Hyperion application. Just to give some background of the requirement our current HFM application captures the base level data in Indian GAAP reporting structure only just like any other incorporation would do in their statutory reporting format. Now we are looking at prospects and possible impact of capturing, at base level data, both as per Indian GAAP and IFRS formats- both being active but populated by different end users.
    We would like to receive some valuable inputs as to how feasible it is to capture at base level, financials of different GAAP as part of same application substantiated by an example, if any. In other words what could be the possible challenges and adverse impact because of the the multiple base load. One such impact which I could foresee could be handling of business rules and validations for different base load in the same rule file.
    Please provide your valuable inputs on the same.

    To clarify the question:
    the query asks for multiple base loads - i.e Base / Lowest level data being loaded into the application (loaded thru FDM, Data Forms etc - and not Journals/Adjustments), both for Indian GAAP and IFRS, parallely
    The requirement is to specifically load both Indian GAAP and IFRS as base level information - to enable both reporting journeys, in the same application.
    i.e:
    - 1 base load in Indian GAAP, with related IFRS adjustments to reach financials as per IFRS requirement
    - 1 base load in IFRS, with related Indian GAAP adjustments to reach financials as per Indian Gaap requirements
    Both hierarchies - operating within the same application - but for two different set of entity hierarchies, for two different end-user groups, with different reporting timelines.
    What are your inputs, from a Best Practice approach - whether to develop such structures as part of the same application or go for separate applications - from a design, development, testing and ongoing maintenance perspective
    Edited by: Indraneel Mazumder on Feb 19, 2013 7:41 PM

Maybe you are looking for

  • Satellite A100-207: Is it possible to upgrade graphic card for gaming

    Hi I am looking to buy the Toshiba A100-207 laptop and it comes with 128MB of shared graphics. I would like to play games and I was wondering if I could upgrade the graphics (such as a nvidia card that I could buy and put in) or are the graphics fixe

  • Message trigger after Purchase Order Change

    Hello all, I have a requirement whereby system should trigger output message ater PO change. I have maintained message type for the PO using MN04. However still I am not able to get message tirggered afer change. System is triggering ourput message a

  • 10.5.3 Update display issue. None of the already discussed...

    I've calibrated my display at a colour management facility some weeks ago, and took a screen picture of the brightness setting in system preferences... so that i could recall it in case i changed the brightness by accident. well, after updating coupl

  • Harman Kardon Drive+Play iPod controller Installation

    Here is the full series for the Drive+Play iPod installation: FirstLook: http://www.rainydaymagazine.com/RDM2005/Workshops/Garage/RDG_DriveNPlayFirstLook .htm BenchTest: http://www.rainydaymagazine.com/RDM2005/Workshops/Garage/RDG_DriveNPlayTestPlace

  • Service.cshttpd.maxthreads tuning

    Are there any guidelines on how to set the service.cshttpd.maxthreads parameter in ics.conf? The default value is 20, but presumably this would need to increase with the number of users. I couldn't find anything in the documentation/wikis/forums abou