On Mon, Aug 4, 2014 at 2:51 PM, sweety fx <fxswe...@gmail.com> wrote:
> My colleague mentioned list is the better way of doing it. So that we > don't face null pointer exceptions. since we check for list.isEmpty() You're replacing one if check for another and making your code confusing. This is not better. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.