22

Sometimes.. Sometimes I really want to punch a developer in the face.
Heres why. Please appreciate the few minutes i spent on editing this to look nicer xD

Comments
  • 6
    Apparently, my fellow wizards, it turns out it means "Local to the method/scope using the variable", not "Local to the class".
    No wonder some people think im a fuckup lol
  • 2
    @JiggleTits if you also make it static it should hide that.
  • 1
    @JiggleTits "local to a class" how does that work?
    A
    Nd with that I mean why isnt a non private member not local to the class.
  • 2
    @Codex404 idk. Im retarded XD
    I forgot that a variable without an access modifier is accessible from classes within the same package.
    If im wrong here, im gonna go eat something to help against the crying.
  • 2
    @JiggleTits

    I am assuming you want to define a constant here similar to #define defaultMaxHealth 20 in C/C++. For that you need to go for
    private static final double DEFAULT_MAX_HEALTH = 20;

    And preferably use upper snake case, thats the convention.
  • 0
    @JiggleTits this explains so much!
  • 0
    @bitsnpieces thanks for the clarification.
    What is upper snake case? Caps lock with underscores to connect each word?
  • 1
Add Comment