First of all you are trying to use wrong class, should be CompareStrings
and not CompareString
.
Second, I would recommend using a nice utility lib for handling command line called Cliche from Google Code site
And third, it would be good to check if the given string is null before you call compareToIgnoreCase
on it
No comments:
Post a Comment