Jump to content

array list problem

- - - - -

  • Please log in to reply
1 reply to this topic

#1
robbieT1991

robbieT1991

    Newbie

  • Members
  • Pip
  • 2 posts
is there an exception that stops the program from trying to uses a non existent element in an array list?

#2
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
I don't think there is such an exception. You can use isEmpty() and size() to avoid stepping out of index range.
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users