7

What is the main difference between calling remove() or delete() on a SparseArray, because they both accept key's as arguments. Thanks.

Moshe Rabaev
  • 1,892
  • 16
  • 31

1 Answers1

9

There is no difference. Quoting the documentation for remove():

Alias for delete(int).

In other words, they do the same thing. In the current implementation, remove() calls delete().

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491