Top "Indexof" questions

indexof is a method in programming languages like Java, C#, JavaScript, etc.

indexOf in a string array

Is there anyway to get indexOf like you would get in a string. output.add("1 2 3 4 5 6 7 8 9 10); String bigger[] = output.get(i).…

java arrays string indexof
Javascript 2d array indexOf

I have a 2d array like this: var arr = [[2,3],[5,8],[1,1],[0,9],[5,7]]; Each index stores an inner array containing the coordinates of some …

javascript arrays 2d indexof
Find the index in an ArrayList that contains a string

By using Jsoup I parse HTML from a website to populate an ArrayList with what I needed to fetch from …

java string arraylist jsoup indexof
Get index of object in a list using Linq

I am new to Linq. I have a Customers table.ID,FullName,Organization,Location being the columns. I have a …

linq list indexing find indexof
Java indexOf method for multiple matches in String

I had a question about the indexOf method. I want to find multiple cases of "X" in a string. Suppose …

java indexof
javascript indexOf not working as expected with array

I am getting -1 from myarray.indexOf(element) even when element appears to be in myarray. Here's some code snippets: …

javascript arrays indexof
Why Array.indexOf doesn't find identical looking objects

I have array with objects. Something Like this: var arr = new Array( {x:1, y:2}, {x:3, y:4} ); When I try: arr.…

javascript arrays search object indexof
IndexOf with String array in VB.NET

How would I find the index of an item in the string array in the following code: Dim arrayofitems() as …

vb.net indexof arrays
Finding position of an element in a two-dimensional array?

Well simple question here (maybe not a simple answer?) Say I have a two dimensional array [0] [1] [2] [3] [4] [5] [6] [7] [8] Now suppose I want …

c# vb.net arrays multidimensional-array indexof
Trying to find all occurrences of an object in Arraylist, in java

I have an ArrayList in Java, and I need to find all occurrences of a specific object in it. The …

java arraylist indexof