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*

3
  • 1
    Not really an algorithm, this is just a library call. Useful for Java, not so much for everybody else. Commented Dec 13, 2010 at 5:14
  • 2
    @benzado is right but +1 anyway, because some Java developers might not be aware of the method Commented May 8, 2011 at 11:27
  • @finnw, i am one of those developers. :) Commented Nov 12, 2013 at 8:37