Thread: Integer Usage
View Single Post
  #3 (permalink)  
Old 01-23-2008, 06:13 AM
bluegreen7hi bluegreen7hi is offline
Member
 
Join Date: Nov 2007
Posts: 12
bluegreen7hi is on a distinguished road
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?
Reply With Quote