So, I'm trying to make an extremely simple program.
public class test {
public static void main (String args[]){
System.out.println("Yum! Pi!");
int pi = 1;
varCreate();
varAdd();
}
public void varCreate () {
pi++;
}
public void varAdd () {
System.out.println(pi);
}
}
It's wont let me do this, it says something along the lines of: "cannot make static reference to the non-static method varAdd from the type test" I'm sure there's an extremely simple error, I just can't find it. Kudos for any help!