jameshughes89 / cs102

CS 102: Data Structures --- Java
http://csci162.com/
GNU General Public License v3.0
11 stars 16 forks source link

:bug: :mortar_board: Exception topic --- Update example :warning: #943

Closed jameshughes89 closed 8 months ago

jameshughes89 commented 8 months ago

Related Issues or PRs

Caused by #899 related stuff

What

Change out the remove example from the throwing exception discussion

Why

remove is not actually throwing exceptions now.

How

Either use like pop or the removeFirst. Using removeFirst may be a good one because it gives a chance to talk about why the more general remove does not throw an exception (as discussed in #938)

Additional Notes

When working on #497 I noticed this. Tried to fix it quickly, but noticed it should be its own PR.