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
  • \$\begingroup\$ It looks like you used a constant instead of calculating PI. \$\endgroup\$ Commented Jan 19, 2014 at 1:43
  • \$\begingroup\$ That is a nice twist. Working on it now. \$\endgroup\$ Commented Jan 19, 2014 at 2:02
  • \$\begingroup\$ You may compress it a bit more by adding throws Exception in main and removing the try-catch block. Further, you may rename pi and sqrtmethods and the loc, args, SCALE, x0 and x1 variables to 1 char identifiers. And by the way you must add the complete class, this includes the class Foo{ declaration and the imports. \$\endgroup\$ Commented Jan 19, 2014 at 3:21