/ Published in: Java
Expand |
Embed | Plain Text
public static final double pi = 3.14159;
Comments
Subscribe to comments
You need to login to post a comment.
joaocosta on 09/21/07
2 people have marked this snippet as a favorite
public static final double pi = 3.14159;
Subscribe to comments
You need to login to post a comment.
actually it should be
public static final double PI = 3.14159;
java standards say that all static variables should be all upper case.