Results 1 to 3 of 3
  1. #1
    logicraju is offline Member
    Join Date
    Dec 2012
    Posts
    6
    Rep Power
    0

    Default Checking whether a 1D arraylist is within a 2D arraylist.

    Hi Guys !

    I'm a newbie. I'm encountering a situation where I want to check whether a 1D arraylist is within another 2D arraylist.

    for eg:

    2D arraylist = [[1,2],[3,4,5],[6],[7,8,9,10]]
    1D arraylist = [3,4,5]

    I want to check whether [3,4,5] is within the 2D arraylist. In the above case, [3,4,5] is present within 2D arraylist.

    I maybe stupid. I can't figure out a way to overcome this ... !!

    Counting on you guys ... !

    Thanks in advance...
    Cheers !

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,297
    Rep Power
    5

    Default Re: Checking whether a 1D arraylist is within a 2D arraylist.


  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,928
    Rep Power
    16

    Default Re: Checking whether a 1D arraylist is within a 2D arraylist.

    kaydell2, we are all here to learn. No spoonfeeding complete code solutions please.

    I've removed your post.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Replies: 12
    Last Post: 07-07-2011, 08:49 PM
  2. Checking if an ArrayList is sorted
    By MonkeyGrad in forum New To Java
    Replies: 4
    Last Post: 04-13-2011, 06:27 AM
  3. sorting arraylist based on another arraylist
    By busdude in forum New To Java
    Replies: 4
    Last Post: 02-07-2011, 11:48 AM
  4. Replies: 7
    Last Post: 11-22-2010, 01:26 PM
  5. Replies: 2
    Last Post: 04-21-2008, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •