
//A.java public class A { static int a=regd; public A() { } } //B.java public class B { static int b=A.a; public A() { } }
I created two classes separately.Here regd is dynamic variable means it's varying with the given input. i want to call repeatedly but first time i got value. but when i called second time i got different value. Could you please tell me answer. For Example for first time i have given regd=9 in class b i got b=9.
but when i called second time i have given regd=11 but i got b=9 i want b=11 Answer me please

Hi Friend,
Please post your full code!
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.