Skip to main content
code formatting
Source Link
MattAllegro
  • 7.6k
  • 5
  • 50
  • 59

Yes, that is exactly what static methods are for.

ClassName.staticMethodName();

ClassName.staticMethodName(); 

Yes, that is exactly what static methods are for.

ClassName.staticMethodName();

Yes, that is exactly what static methods are for.

ClassName.staticMethodName(); 
Source Link
DaveJohnston
  • 10.2k
  • 10
  • 58
  • 84

Yes, that is exactly what static methods are for.

ClassName.staticMethodName();