Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: checking array list items!!! urgent help please

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default checking array list items!!! urgent help please

    Our criteria is starting from the first element of ArrayList if it contains any elements of ArrayList, we have to delete checking index, such as Keys are: [ABD, AC, ABC, AD, ACD, AB]

    Lets start checking,

    If ABD contains any elements of this list, which is it contains both AB and AD then we will delete ABD from our List, but while checking we have to do charatacer check.

    After we removed ABD new list Keys are: [ AC, ABC, AD, ACD, AB], then check if AC contains any list items... No it does not then check if ABC contains any list items, yes, AC and AB, and remove ABC as well.

    Arter removing new list Keys are: [ AC, AD, ACD, AB],

    Finally we will end up Keys are: [ AC, AD, AB]


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: checking array list items!!! urgent help please

    If you have any specific programming questions, you should post them.

Similar Threads

  1. Replies: 5
    Last Post: January 9th, 2012, 02:36 PM
  2. help with array assignment ! urgent please :(
    By dre2327 in forum Collections and Generics
    Replies: 5
    Last Post: October 6th, 2011, 01:30 PM
  3. misalignment of list items
    By venkyInd in forum AWT / Java Swing
    Replies: 2
    Last Post: March 15th, 2010, 08:33 AM
  4. How to get a sum value from items listed in array ?
    By makarov in forum Loops & Control Statements
    Replies: 0
    Last Post: January 6th, 2010, 06:11 PM
  5. Different operation on Array
    By jempot in forum Collections and Generics
    Replies: 4
    Last Post: January 27th, 2009, 06:07 AM