here is some of my code... is there a way to change it so that the
variable being returned as 0.0 can take the value of oneNum, like the
variable test? thanks
public class treeCounter extends JApplet implements ActionListener {
float oneNum, test;
public void init(){
gV();
test = gV();
System.out.println(test); // returned as 3.0
f = new SampleFrame(output);
}
}
class SampleFrame extends Frame{
// a few variable declarations
SampleFrame(String title){
// other code in here
Main main = new Main();
main.show();
}
}
class Main extends JFrame{
// variable declarations
public Main(){
treeCounter dp = new treeCounter();
oNum = dp.gV;
System.out.println(oNum); // returned as 0.0
// more code
}
}