Static Method
Belongs to class.
💡 THINK OF IT LIKE…
▸ YOUR TURN
Write: public static int abs(int x) { return x < 0 ? -x : x; }
Tab indent · Shift+Tab outdent · ⌘/Ctrl + Enter submit · auto-pairs ( [ { " '
Belongs to class.
Write: public static int abs(int x) { return x < 0 ? -x : x; }