remove last letter only in string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lekshminair
    New Member
    • Jan 2007
    • 3

    remove last letter only in string

    dears can u help me

    remove last letter in a string.
    eg: arises in this string remove only last 's'
    ouput:arise
  • hirak1984
    Contributor
    • Jan 2007
    • 316

    #2
    did you try yourself?

    here are two hints...
    1)you can get the length of a string.
    2)you can find any character from a string given its position using chatAt(int).
    try yourself first and post errors.
    Originally posted by lekshminair
    dears can u help me

    remove last letter in a string.
    eg: arises in this string remove only last 's'
    ouput:arise

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by lekshminair
      dears can u help me

      remove last letter in a string.
      eg: arises in this string remove only last 's'
      ouput:arise
      substring .

      Comment

      Working...