CS计算机代考程序代写 Java // ConstantsVariablesExample.java

// ConstantsVariablesExample.java
// Demonstrates the use of constants and variables
public class ConstantsVariablesExample {
public static void main(String args[]) {
final double PI = 3.1428;
float radius = 5.5F;
double area;
boolean x = true;
area = PI * radius * radius;
System.out.println(“Circle Radius = ” + radius + ” Area = ” + area);
System.out.println(“Boolean Value = ” + x);
}
}