Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    That should be str.length(); String has no public property called length. Commented Nov 12, 2013 at 18:57
  • @VivinPaliath:- Yes thats correct. Missed that! Updated my answer! Commented Nov 12, 2013 at 18:58
  • 1
    @VivinPaliath:- Not an issue Sir. Sometimes you do have to pay when you do miss small things just to answer it first! Commented Nov 12, 2013 at 19:00
  • 1
    (tl;dr: tl;dr.) Sorry, that was my downvote, because I had really thought that the answer missed addressing half of the question when I read it. It's now a complete answer, so either that was an artifact of voting (too) fast, or I was just tripping. Unfortunately, I can't undo my vote without a logged edit, which I hadn't realized. (Sorry--if you were to find an excuse to edit now, I'd clear the downvote.) Commented Nov 12, 2013 at 19:20
  • @DavidDuncan:- Not an issue Sir. Although I have edited my answer. If you want you can undo your downvote and possibly give me an upvote ;) Commented Nov 12, 2013 at 19:21