Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You should compare strings with the
equals
method.==
/!=
checks for reference equality,equals
for value equality.How would I "fix" it?
I'm extremely new to Java and 'intern' is something I just learned about from looking it up based on your comment...
This only works if
name
is an interned string.