Results 1 to 3 of 3
- 12-10-2012, 01:25 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 6
- Rep Power
- 0
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 !
- 12-10-2012, 06:08 PM #2
Re: Checking whether a 1D arraylist is within a 2D arraylist.
So, You Need to Write a Program but Don't Know How to Start
How would you do it on paper?
- 12-12-2012, 03:07 AM #3
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
ArrayList copy some of the element from one arraylist tnto another arraylist
By ralf in forum New To JavaReplies: 12Last Post: 07-07-2011, 08:49 PM -
Checking if an ArrayList is sorted
By MonkeyGrad in forum New To JavaReplies: 4Last Post: 04-13-2011, 06:27 AM -
sorting arraylist based on another arraylist
By busdude in forum New To JavaReplies: 4Last Post: 02-07-2011, 11:48 AM -
how to add Arraylist filter for a jsp page showing results from a servlet-Arraylist
By alok_sharma in forum Java ServletReplies: 7Last Post: 11-22-2010, 01:26 PM -
Java Project Trouble: Searching one ArrayList with another ArrayList
By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 11:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks