Hi,
In java switch-case, please note that the "case expression" must be a constant value or constant expression.The compiler has to be able to determine this "case expression" value at compile rather than run‑time.
In your case,
The value of those static constants are not computed until...