1//A constant is a variable whose value won't change after it's been defined.
2
3private static final int OUR_CONSTANT = 1;
4
5//We make our constants static and final and give them an appropriate type,
6//whether that's a Java primitive, a class, or an enum.
7//The name should be all capital letters with the words separated by underscores,
8//sometimes known as screaming snake case.
1public final class MyValues {
2 public static final String VALUE1 = "foo";
3 public static final String VALUE2 = "bar";
4}