Back to project page Smartlab.
The source code is released under:
Apache License
If you think the Android project Smartlab listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ir.smartlab.java.ch05.circlesample; /*from w w w .jav a 2 s .co m*/ /* * The Circle class */ public class Circle { // Attributes and methods come here private double radius; public void setRadius(double r) { radius = r; } public double perimeter() { return (2 * Math.PI * radius); } public double area() { return (Math.PI * radius * radius); } }