What is the difference between the get () and valueAt () methods of the SparseIntArray class?

    1 answer 1

    SparseArray:

    get() gets the object associated with the specified key. or null if there is no such mapping.

    valueAt() returns the value from the index key mapping, which is stored in this SparseArray. Range 0 ... size () - 1