I seem to be having a brain fart or something. Is there an easy way to combine the equalsignorecase and contains methods for string?
if(docUser.equalsIgnoreCase(user))
{
//doit
}
Edit: I assume I can convert both to lower case but any other way?
if(docUser.toLowerCase().contains(user.toLowerCase()))
{
//doit
}
Edited by: sarcasteak on Jan 13, 2010 8:54 AM