java pi math code example Example: java math.pi import java.lang.Math.*; double radius = 15; double area = Math.PI * radius * radius;