Hello, Java noob here! I say noob, I first started with Java 1 with v1.0 in 1996, but then went with Delphi instead. Now circumstances have led me to tackle Java again, because I need to program extension modules for the Bitwig Studio music application. So, I am effectively a noob again, albeit one with easier access to learning material!
I have a situation where, in normal circumstances, I would expect a Stack object to be empty, but would like to throw an exception if it is not. Is there an inverse to the EmptyStackException(), a NonEmptyStackException() if you like? I can get round the problem, but studying Java again has reawakened the desire to be semantically pure(ish) wherever possible 😉