Change value to a global variable and take it value in other class
<p>I have a global variable in class "X", public int fileCounter = 0;</p>

<p>in a method of this clas I increase the value to n... "fileCounter ++;"</p>

<p>I need to take this value in other class, the problem is at this moment returns the value in 0</p>

<p>how can I do this?</p>
