How can I make an if statement to check if "NoSuchElementException" is returned from a function? Something similar to what I have below.
if (functionReturns == "NoSuchElementException")
This way worked for me.
if(function.equals("NoSuchElementException"))
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments