|
Yeah, when I use public static void main I get these errors:
C:\JavaPrograms\Math.java:19: non-static variable e cannot be referenced from a static context
System.out.println(a + b + c + d + e);
It's telling me that a non-static variable can't be referenced in the static main method. How would I go about referencing them then?
|