aspose file tools
The moose likes Java in General and the fly likes need to find index of element in multidimensional array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "need to find index of element in multidimensional array" Watch "need to find index of element in multidimensional array" New topic
Author

need to find index of element in multidimensional array

Bradpitt Elizabeth
Greenhorn

Joined: Aug 30, 2011
Posts: 2
I have an array "arr" that is an array of objects. Each object has the same 7 properties.

I want to find the index of the object with a property that matches a certain value x in the array arr. How can i accomplish this?

The array has hash tables associated with it.

arr [ obj [ i ] . property1 + "_" + obj [ i ] . property2 ] = arr [ i ] ;

so whats the index of the object where .property1 = x ?

Thanks

Education consultants in India
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: need to find index of element in multidimensional array
 
Similar Threads
Array problem
arrayindexoutofbound exception
MindQ
struts iterate tag
Very Interesting Question