1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

illustrate the collections in java

Discussion in 'Java' started by sudheerkamichetty, Mar 20, 2009.

  1. sudheerkamichetty

    sudheerkamichetty New Member

    Joined:
    Mar 20, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    chennai
    how use the indexOf() method in ArrayList class
     
  2. vikas1234

    vikas1234 New Member

    Joined:
    Aug 21, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    indexOf(Object elem)
    Searches for the first occurence of the given argument, testing for equality using the equals method.

    You can use get(index) method
     

Share This Page