To get Pi in Java, write

`Math.PI`

.`Math.PI`

is a build-in constant that you can use in your equations:

```
double twoPi = Math.PI * 2;
System.out.println(Math.PI); // 3.141592653589793
System.out.println(twoPi); // 6.283185307179586
```

+

To get Pi in Java, write

`Math.PI`

.`Math.PI`

is a build-in constant that you can use in your equations:

```
double twoPi = Math.PI * 2;
System.out.println(Math.PI); // 3.141592653589793
System.out.println(twoPi); // 6.283185307179586
```