Do you need the amount variable to be final? If no then explain a bit more. When a final variable is declared and assigned its value cannot be changed. So first declare the variable as final int amount; and do not assign any value. Assign at a place where you need. Or declare and assign at class level as a static constant. It all depends on your requirement.
You need to provide more context. You could simply write int amount = 12 in the first place, but I think you are already aware of that. So you need to show us where and how exactly you are planning to update the amount variable.
int amount = 12in the first place, but I think you are already aware of that. So you need to show us where and how exactly you are planning to update theamountvariable.