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?

Member Avatar for iamthwee

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"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.