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