public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 double r, t; r = 1.5; t = Math.PI * r * r; System.out.println(t); }}