Hi i have a piece of code that checks to see if an indexed point in a string is white space....

if(Character.isWhitespace(c.charAt(0)))
{
return true
}

and i want to use the same technique to return true if an open chevron '<' is at a point in the document but i'm not sure how. It must be a similar method and the chevron unicode but i'm stuck.


Can anyone help?

Hi i have a piece of code that checks to see if an indexed point in a string is white space....

if(Character.isWhitespace(c.charAt(0)))
{
return true
}

and i want to use the same technique to return true if an open chevron '<' is at a point in the document but i'm not sure how. It must be a similar method and the chevron unicode but i'm stuck.


Can anyone help?

Google for "java string search"