You must set a variable that can be used in any class method. Where do I need to make an announcement?
those. I created a public class in it I have several public static void subroutines. I need to set a variable that I can use in each subroutine. if I just set this variable in the first subroutine as public double a; the rest of the code immediately turns red.
Moreover, I need to calculate the value of this variable in one of the subroutines, and in the following subroutines, in order to substitute the calculated value.