Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
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 -
@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. -
@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. -
@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. -
@bitsnpieces thanks for the clarification.
What is upper snake case? Caps lock with underscores to connect each word?
Related Rants
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
rant
fuck me
intellij
decide