I referred the android doc site for \"SparseBooleanArray\" class but still not getting idea of that class about what is the purpose of that class?? For what purpose we need
Like the javadoc says, SparseBooleanArrays map integers to booleans which basically means that it's like a map with Integer as a key and a boolean as value (Map).
However it's more efficient to use in this particular case It is intended to be more efficient than using a HashMap to map Integers to Booleans
Hope this clears out any issues you had with the description.