ANDROID DEVELOPMENT RESOURCES
Wednesday, December 12, 2012
Finding the index of the Array from the given value
Let's say there is a number of values in array like the following.
int[] array = {1,2,3,4,5,6};
Arrays.asList(array).indexOf(4);
This will returns the index of the value in array.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
‹
›
Home
View web version
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.