Java ArrayList

function

  • add(object)
  • remove(int index)
  • remove(object)
  • contains(object)
  • isEmpty()
    return TURE or FLASE
  • indexOf(object)
    return -1 or index num
  • size()
    return the size of ArrayList
  • get(int index)
    return the selected object

how to new a class

ArrayList myList=new ArrayList();

你可能感兴趣的:(Java ArrayList)