Ok never mind, thanks
Type: Posts; User: jbraque
Ok never mind, thanks
I have to catch multiple exceptions and find which exception was thrown without using a if...else block. The exceptions are written by me and their number so far is 10 and may expand in the future.
...
Well yes you are right about the pseudocode...
Anyway i thought of putting all strategies in a collection and perform all of them as they will have the same interface.
Hello all,
This is an example of pseudocode:
if string = "" then
do something
if string case is all capital
do something else
if ...
do something else