K
kevinm3574
in perl I can say:
$text = "abc def geh";
if ($text !~ m/def/) {
....
}
Obviously, I would fill $text "dynamically" from reading some kind of
input and then test it for not having the string "def" and then do
something but I'm having problems figuring out how to do this in Java
(I hope I'm not just being dumb here). Any help greatly appreciated.
Thanks.
Kevin
$text = "abc def geh";
if ($text !~ m/def/) {
....
}
Obviously, I would fill $text "dynamically" from reading some kind of
input and then test it for not having the string "def" and then do
something but I'm having problems figuring out how to do this in Java
(I hope I'm not just being dumb here). Any help greatly appreciated.
Thanks.
Kevin