Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Re: Newbie Java problem --->"Cannot make a static reference to the non-static field d

    You could also use a getter function.

    But why are you doing any of that from main in the first place?
  2. Re: Newbie Java problem --->"Cannot make a static reference to the non-static field d

    Static things (variables, methods, classes, etc) are things that don't belong to a particular instance of a class. For example, JFrame.EXIT_ON_CLOSE doesn't care which instance of JFrame it belongs...
Results 1 to 2 of 2