1 2 public class Circle { 3 4 private int length; 5 6 public Circle(int length) { 7 this.length = length; 8 } 9 10 public double getArea() { 11 return Math.PI * Math.pow(length,2); 12 } 13 14 }