Create constant java