You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine having to add several other Categories to your code. The compareTo() method would be painful to expand. Consider storing the constants in an ordered collection, like a list for example.
The text was updated successfully, but these errors were encountered:
Imagine having to add several other Categories to your code. The compareTo() method would be painful to expand. Consider storing the constants in an ordered collection, like a list for example.
The text was updated successfully, but these errors were encountered: