converting strings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saharf
    New Member
    • Sep 2007
    • 4

    #1

    converting strings

    hello. plz tell me how to find < character in a string, if there is no space before it. suppose in d current string:
    efherihgf<a erorifj
    how to find < ? tanx alot
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by saharf
    hello. plz tell me how to find < character in a string, if there is no space before it. suppose in d current string:
    efherihgf<a erorifj
    how to find < ? tanx alot
    Have a look at the String.indexOf( ) method; if a '<' is found it's a breeze
    to check whether or not the character to the left of it is a space.

    kind regards,

    Jos

    Comment

    Working...