Firstly, hi! First time posting here [if this is the wrong area sorry!].
Basically I'm searching through an array of objects and comparing strings. If there's a match (there can only be a single match) I return the object.
What do I do if there isn't a match? Should I throw an exception? If so, what type?
I'm fairly new to Java, and just learning about exceptions, so sorry if it's an obvious question
Thanks!
Tom


LinkBack URL
About LinkBacks

Reply With Quote
by clicking the
button on their useful posts.