System.out.println("请输入圆的半径");
double r=new Scanner(System.in).nextDouble();
System.out.println(3.14rr);
原来是因为idea和部分软件冲突了......关了之后正常了