Why list.size-1 is done while calculating Id
bonus-using-livedata-with-room
kamal.knt66
(Kamal Knt66)
September 3, 2020, 3:21am
#1
Why list.size-1 is done while calculating ID
Anubhav-Gupta-1453182748098461
(Anubhav Gupta)
September 3, 2020, 8:32am
#2
because ID starts from 0 index and not from 1.