Simple List question

i have a table with phone number and a flag indicator, Like this
Phone number ind.
555 0000 1
555 1111 2
555 0000 1
555 1111 2
555 1111 1
When the user clicks submit, I would like to retreive the phone numbers with diff. indicators only. 555 1111 in this case. Could anyone suggest how i could do this? And trust me, i tried a lot before posting here, so please help!

Clearly you have a few more steps to implement, but my first suggestion is that this practice is not ideal:
>
ArrayList arr = new ArrayList ();
arr.add(phoneNum);
arr.add(ind);I'd have a POJO that encapsulated a phone number and an indicator
public class Etornedo {
    String phoneNumber;
    String indicator;
     * @param phoneNumber
     * @param indicator
    public Etornedo(String phoneNumber, String indicator) {
        super();
        this.phoneNumber = phoneNumber;
        this.indicator = indicator;
    }and do
ArrayList arr = new ArrayList ();
arr.add(new Etornedo(phoneNum, ind));The easiest way to do this is to write a method such as in your Etornedo class to do the comparison, iterate through your array list, and if any of the objects match the comparison, keep that value in a separate list
    public boolean phoneNumbersMatchButIndicatorsDoNot(Etornedo compareEtornedo) {
        boolean phoneNumbersMatch = compareEtornedo.getPhoneNumber().equals(this.getPhoneNumber());
        boolean indicatorsMatch = compareEtornedo.getIndicator().equals(this.getIndicator());
        return (phoneNumbersMatch && !indicatorsMatch);
    }

Similar Messages

  • Simple list question - no space on left?

    This is a real simple problem. I have a list that I want the
    bullets
    "justified" to the left with no space. I'm using an image for
    the
    bullet. How to I get this done? the bullet is 13 px wide

    Art wrote:
    > This is a real simple problem. I have a list that I want
    the bullets
    > "justified" to the left with no space. I'm using an
    image for the
    > bullet. How to I get this done? the bullet is 13 px wide
    #subbox2,.trianglebullet {
    list-style: url(images/01menubull.gif) inside;
    display: inline-block;
    border-bottom: 1px solid #CCCCCC;
    text-decoration: none;
    #subbox2,.trianglebullet a,.trianglebullet
    a:link,.trianglebullet
    a:visited,.trianglebullet a:hover,.trianglebullet a:active{
    text-decoration: none;
    <div #subbox2>
    <ul>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_geography.asp?cid=9">Geography</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_ushistory.asp?cid=138">US
    History</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_atrisk.asp">Special
    Needs/At Risk</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_eduplay.asp?cid=75">Gonge</a></li>
    <li class="trianglebullet"><a
    href="cat_earlychildpuzzles.asp?cid=108">Tuzzles</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_eduplay.asp?cid=97">Orbit</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_eduplay.asp?cid=110">Yellowtail</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/discountresults.asp">SALE!!!</a></li>
    <li class="trianglebullet"><a
    href="
    http://www.amep.com/cat_vidlab.asp">Videolabs</a></li>
    </ul>
    <!--end submenuitems--></div>

  • Store TV preview files as simple list

    Hello to all,
    I have problem with listed items - that is, it is shown in thumbnails, so I have dozens of pages to list to find proper file!!
    Can I preview it as simple list??
    As I can see, everyone has its question, none got its answer.:-/

    I assume this is not possible but you can filter the multimedia files by media type.
    Use the MEDIA TYPE button to filter audio, video or picture files.

  • Any need for Allergen heirarchy list instead of simple list?

    This question is to the user community more than Oracle folks.  Does anyone else think that Allergens and Intolerances would be better served as a tree/hierarchy list instead of the simple list that we have today?  I have formatted my simple list for English and the limitation that the sort is alphabetic.  It appears that in some languages the sort order is not as logical as it is for English Users.
    Question:  Is there any value to request this simple list be converted on an Enhancement Request?
    Example:  Our English List becomes the translated list ** Use Imagination .... the idea is that when we try to put logic in English, it becomes "mixed up" on translations ...
    Fish - Bass
    Fish - Tuna
    Milk Products - Casein
    Milk Products - Lactose
    Milk Products - Whey
    Tree Nuts - Almond
    Tree Nuts - Pecan
    Tree Nuts - Walnut
    ** Imagination goes here ....
    Almond
    Bass
    Casein
    Lactose
    Pecan
    Tuna
    Walnut
    Whey

    It appears that I am the only customer seeking something like this.  I have modified our allergens to hopefully be more helpful in translations.  Discussion is answered.

  • How to write heading in bold on a simple list?

    On a simple list, I want to write a heading in bold. How to write one in bold?
    Thanks.

    Hello,
    Format intensified on.
    Write: / l_header_text.
    Format intensified off.
    Message was edited by: Cyrill Smirnov

  • How print  ADDRESSbook simple list? Everything prints scewd right &too long

    I'd liike to print out a simple list of names, phone, addresses from my mac AddressBook. Can't I design the layout? Prints first left 1/3 column jjust phone number, center column just name, and all the other info squeezed at the riight margin with several fields that take up space verticle so I can only print sometiimes maybe 4-6 names a page. If i had a lot of notes in the person's 'NOTES' section of their AddressBook page, it will print out everything, even a couple pages. How not print thhat? I want a simple abbbreviated, short list to carry with at least 10-14 names, address,phone,email, etc on each page.
    I'mm sure the annswer is around here somewhere, iif only i knew where.
    Thanking you foor your help and time.

    Hi thelnukus,
    Are you saying that you see the list correctly but it is printing in a vertical format albeit somewhat skewed?
    I'm not an expert with printing the Address Book in "list" form but have you tried creating a PDF first and then printing that? You do know that you can select/deselect what you wish to include in the list from the "attributes" pane?
    My method for printing a list is this:
    1. Open Address Book
    2. Select in the "Names" column the names that I wish to print a list of.
    3. File Menu>Print
    4. Select/deselect addresses/email etc. from the attributes pane that you do not wish to include in
    the list.
    5. Select other features I want such as Font size (regular/large) from the pop up.
    6. Select Print (or if that does not work select Save as PDF and then print that).
    post back if this doesn't help and try to explain what you are seeing exactly.
    littleshoulders

  • Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Just a suggestion..........
    Download Thunderbird.  Easier to use when it comes to what you want to do w/your emails. 

  • 4 Simple Flash Questions that Are Stumping Me!

    What is the Frame Rate for Web Animations
    Q1. I am making an animation which will be played on the web. What is the default frame rate (fps) of Flash CS5? And what is the frame rate of for web?
    Q2. My animation needs to be 30 seconds long. So at 15 fps that would mean I need to use 600 frames in Flash?
    How Do I Mask everything so all I see is the Content on the Stage?
    I have a wide image that extends past my movies stage size so when I preview my movie the image is visible. How do I mask out anything that extends past my movies window size? I believe I can create a layer named "mask" and place it above all other layers, but I forget how to make the mask. Any help is appreciated.
    How to Fade a Graphic
    I have a graphic element (some type) and I want it to fade from 0% to 100%. In older versions of Flash I could just select the symbol and then set it's alpha value to 0%, move a few keyframes and then set the alpha to 100%. Voila! but now it doesn't seem to work that way. How can I do this in CS5?

    Ned, it says 24 fps which means there is 24 frames per second so each 24 frames is 1 second.
    Date: Fri, 4 Nov 2011 05:35:16 -0600
    From: [email protected]
    To: [email protected]
    Subject: 4 Simple Flash Questions that Are Stumping Me!
        Re: 4 Simple Flash Questions that Are Stumping Me!
        created by Ned Murphy in Flash Pro - General - View the full discussion
    1 You can create your character as a movieclip and copy/paste that movieclip from one file to another. 2. One way to create a movieclip is to copy all the frame of the animation's timeline (select them all, right click the selection, choose Copy Frames), then create a new movieclip symbol (Insert -> New Symbol...etc) right click on its only keyframe and chhose Paste Frames.  THat will put all the layers and frames you copied into the movieclip The only way to come close to being certain about the timing of you animation is to use code to keep track of the time, something like getTimer()..  The frame rate that a file plays at is not a reliable means of dictating the time it takes due to a variety of factors which include the amount of content you are trying to process and performance limits of the user's machine.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4007420#4007420
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4007420#4007420. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • A simple list with seven time buckets starting from the date report is run.

    Hi All,
    I am new to ABAP.Recently i have planned to write a progam which will help in planning the delivery of scheduled items.For a given sales Org. it will display all the undelivered,delivered items in a simple list and sort them with delivery dates.it will also provide a summary report at material group.For that i have used selection screen(LIKP-VKORG-Obligatory).when i enter VKORG Details i should get all the delivery docs for which delivery is not done or partially done.For this i have taken one more table LIPS
    (LIPS-MATKL,LIPS-MATNR,LIPS-VBELN,LIPS-POSNR,LIPS-WERKS,LIPS-LFIMG,LIPS-MEINS) for tables LIKP and LIPS VBELN is the key field.when i enter VKORG Data in the selection screen ,how can i get the data from LIPS Table.Please explain?
    Also report should be simple list with seven time buckets starting from the date when the report is run.The amount of quantity to be delivered should be displayed under appropriate bucket i.e within the bucket where its delivery date falls in.for ex:If the report is run on Tuesday 15th march 2010 then the start date 1 should be starting date of the week which is Monday 14th March.
    The report will be summarized at Material Group and Material Number.
    Appreciate your help
    Thanks and Regards,
    Shakeer Hussain

    Sorry, sounds too much like a complete requirement you want done for you by the community.
    Please work on it yourself and search for available information before posting specific problems only.
    Thread locked.
    Thomas

  • Simple performance question

    Simple performance question. the simplest way possible, assume
    I have a int[][][][][] matrix, and a boolean add. The array is several dimensions long.
    When add is true, I must add a constant value to each element in the array.
    When add is false, I must subtract a constant value to each element in the array.
    Assume this is very hot code, i.e. it is called very often. How expensive is the condition checking? I present the two scenarios.
    private void process(){
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             if (add)
             matrix[i][ii][iii][...]  += constant;
             else
             matrix[i][ii][iii][...]  -= constant;
    private void process(){
      if (add)
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             matrix[i][ii][iii][...]  += constant;
    else
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
           matrix[i][ii][iii][...]  -= constant;
    }Is the second scenario worth a significant performance boost? Without understanding how the compilers generates executable code, it seems that in the first case, n^d conditions are checked, whereas in the second, only 1. It is however, less elegant, but I am willing to do it for a significant improvement.

    erjoalgo wrote:
    I guess my real question is, will the compiler optimize the condition check out when it realizes the boolean value will not change through these iterations, and if it does not, is it worth doing that micro optimization?Almost certainly not; the main reason being that
    matrix[i][ii][iii][...]  +/-= constantis liable to take many times longer than the condition check, and you can't avoid it. That said, Mel's suggestion is probably the best.
    but I will follow amickr advice and not worry about it.Good idea. Saves you getting flamed with all the quotes about premature optimization.
    Winston

  • Only allowed 1 simple list of web portal?

    Hi all,
    I have 4 simple lists as user prompts for a Service request. From the the web portal all is fine and seperate.
    When i log the same request from the console the 4 list are now 1 big list.
    Any way to seperate these out for the console other than creating MP lists for each?
    Which would mean you can only have 1 simple list per Service request?
    2012 RTM.

    Hi Anton,
    From the request offering setup, i added 4 differnt simple lists
    And from the console when i open the Service request i see all my lists with the default value for list in item 6 above, and when i try to drop down it shows everything from all 4 lists
    Any thoughts or is this normal behaviour?
    Thansk in advance
    John

  • A simple list menu(!)

    I’m trying to create a simple list menu that will load my .swf file is a scrolling panel. I have played about with Flash 8 a long time ago so im very rusty and getting myself in knots ….
    Here is my attempt can anyone help
    Thanks
    import fl.controls.List;
    import fl.data.DataProvider;
    import flash.net.navigateToURL;
    var defaultMainDisplay:URLRequest = new URLRequest("home.swf");
    // List box info
    var File_list:Array = [
    {label:"Home File", data:home.swf},
    {label:"File 1", data:swf\File1.swf},
    {label:"File 2", data:swf\File2.swf},
    {label:"File 3", data:swf\File3.swf},
    MyList.dataProvider = new DataProvider(File_list);
    MyList.allowMultipleSelection = true;
    MyList.addEventListener(Event.CHANGE, showData):void{
    // I want the selected (data) .swf file to be loaded into a ScrollPalette on the screen replacing the default home.swf
    removeChild(loader);
    var newMainDisplayRequest:URLRequest = new URLRequest(+ event.target.selectedItem.data);
    loader.load(newMainDisplayRequest);;
    addChild(loader);
    mainDisplay.loadMovie("home.swf");

    I thought I might bright it down a level with using frame levels, but without success AGAIN!....
    import fl.controls.List;
    import fl.data.DataProvider;
    var graphic:Array = [
    {label:"Home Page", data:"home"},
    {label:"About", data:"about"},
    {label:"Index", data:"index"},
    myList.dataProvider = new DataProvider(graphic);
    myList.allowMultipleSelection = false;
    myList.addEventListener(Event.CHANGE, showData);
    function showData (event:Event)
    { gotoAndStop (+ event.target.selectedItem.data);
    /// This should make it {gotoAndStop (home, about or index....);}

  • How can I PRINT a simple list (e.g., .txt or .doc) of my bookmarks?

    How can I PRINT a simple list (.txt or .doc) of my bookmarks?

    You can export your bookmarks to an HTML file by going to Bookmarks > Organize Bookmarks. From that window select Import/Export and then Export HTML...
    See [[Exporting bookmarks to an HTML file]].
    Once you have that file, open it in Firefox or a text editor and print from there.

  • How to get a clean simple listing of metatags

    I'm working on my sites SEO and it would be very helpful to
    get a list of all the <title> tags, all the Description tags,
    etc in a simple text format. For example, a human-readable site map
    gives a list of all the <title> tags, and I'd like that, but
    in a text file, for a choice of tags.
    With a bit of playing around with regular expressions, Find
    and Replace will generate a report, but the format is very messy.
    For SEO purposes this must be a common enough need, is there
    any way to do it? The super total completely wonderful dream
    utility would generate a .csv file with file name, <title>,
    Description etc in columns but any simple list would do the job.
    It's a big planet, billions of people, millions of websites
    ... the quest for the dream utility ... it must be there .. I'm
    sure of it ... anyone got any ideas where?
    Many thanks
    Andy

    Xenu will give you a list of the title tags -
    http://home.snafu.de/tilman/xenulink.html
    I'm not aware of a utility that will do the same for the meta
    descriptions.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "andy1342" <[email protected]> wrote in
    message
    news:g0s1ul$bqf$[email protected]..
    > I'm working on my sites SEO and it would be very helpful
    to get a list of
    > all
    > the <title> tags, all the Description tags, etc in
    a simple text format.
    > For
    > example, a human-readable site map gives a list of all
    the <title> tags,
    > and
    > I'd like that, but in a text file, for a choice of tags.
    >
    > With a bit of playing around with regular expressions,
    Find and Replace
    > will
    > generate a report, but the format is very messy.
    >
    > For SEO purposes this must be a common enough need, is
    there any way to
    > do
    > it? The super total completely wonderful dream utility
    would generate a
    > .csv
    > file with file name, <title>, Description etc in
    columns but any simple
    > list
    > would do the job.
    >
    > It's a big planet, billions of people, millions of
    websites ... the quest
    > for
    > the dream utility ... it must be there .. I'm sure of it
    ... anyone got
    > any
    > ideas where?
    >
    > Many thanks
    >
    > Andy
    >

  • [svn] 3246: Fix fasttrack bug SDK-16910 - Simple List populated with strings throws RTE .

    Revision: 3246
    Author: [email protected]
    Date: 2008-09-17 15:31:25 -0700 (Wed, 17 Sep 2008)
    Log Message:
    Fix fasttrack bug SDK-16910 - Simple List populated with strings throws RTE. This is fallout from the Group/DataGroup split. DefaultItemRenderer now uses a TextBox instead of a Group to show the list data.
    QE: Any List tests that depended on the default item renderer to support anything other than text must be updated.
    Bugs: SDK-16910
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16910
    http://bugs.adobe.com/jira/browse/SDK-16910
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/DefaultItemRenderer.mxml

    BTW, I do not experience the bug you had mentioned at
    http://www.cs.rit.edu/~cxb0025/flex/TreeControlBugs.html
    Can submit a video of my actions recorded

Maybe you are looking for