add constant to java