2
A java constant cannot be changed, but can be assigned an initial value via another variable ?
For example, if we have in our program a method that hypothetically calculates the import rate of a product through its location and returns a value double
, however this value cannot be changed in the course of the program, it must remain equal to the value initially returned in order to be applied elsewhere in several possible ways.
So, can I assign the value it returned to a constant? What are the ways to "unchange" a value that was calculated from another(s)?