The current list has a size of 6 items. When trying to enquire about the details of the medication in position 10, which is out of bounds, the program crashes and exits. It would be good to throw an exception when the index is out of bounds (in this case, catching the IndexOutOfBoundsException)
The current list has a size of 6 items. When trying to enquire about the details of the medication in position 10, which is out of bounds, the program crashes and exits. It would be good to throw an exception when the index is out of bounds (in this case, catching the IndexOutOfBoundsException)
Labels:
type.FunctionalityBug
severity.High
original: Haotian199/ped#4