Cannot find symbol variable pD! I cant fix it!!!
I know, I have had this before! But now for some reason I cant make a variable static!
Heres My first code, the code that runs first:
Code:
package src;
import some poopy modules..;
public class run{
public static void main(String args[]){
double pD = 0.0;
try{
GameFrame window = new GameFrame();
} catch (Exception e){
e.printStackTrace();
}
}
}
and heres my other code, the one not working:
Code:
package src;
import src.run;
public class Crypt {
private static String encrypt(String string){
blah blah blah things...
displayProgress(x/Double.valueOf(list.length));
blahblahblah more things running.. Unimportant.
}
private static void displayProgress(double value){
run.pD = value*100;
}
Now the problem is, I cant make the pD value static by saying static double pD cause I doesnt work!
So how do I make the displayProgress be able to find the pD value?
For me its impossible!