I am confused, why would this lines of code not work? Thank you.

public class HelloProgram{
public static void main(String args[]){
private static final double x = 3;
}
}