Simple java program below will print pi value in command prompt.
****************************************************************
COMPLETE SOURCE CODE FOR : PrintPiValue.java
****************************************************************
public class PrintPiValue
{
public static void main(String[]args)
{
System.out.println("PI value is : "+Math.PI);
}
}
****************************************************************
JUST COMPILE AND EXECUTE IT
****************************************************************