Posted By

joaocosta on 09/21/07


java constants

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Constants in Java

 / Published in: Java

  1. public static final double pi = 3.14159;

Report this snippet  


RSS Icon Subscribe to comments
Posted By: fuzzylollipop on November 13, 2009

actually it should be

public static final double PI = 3.14159;

java standards say that all static variables should be all upper case.

You need to login to post a comment.