Final (Java): Difference between revisions

Content deleted Content added
deleted vandalism (SämihetSchmutzamFutz)
As per this line : "It is considered good practice to represent final constants in all uppercase, using underscore to separate words". The example should reflect good practice.
Line 57:
public static final double PI = 3.141592653589793;
 
public final double radiusRADIUS;
public final double xPosX_POS;
public final double yPosY_POS;
public final double zPosZ_POS;
 
Sphere(double x, double y, double z, double r) {
radius RADIUS= r;
xPosX_POS = x;
yPos Y_POS= y;
zPos Z_POS= z;
}