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.
I got it!!
Thanks a lot man <3
The
String.split(String s)
splits the string into an array of strings in places where there is s in the original string. So you have something like"hello world!"
, and if you do"hello world!".split(" ")
it will split the string into an array like this:{"hello", "world!"}
Then with the
[0]
he is accessing the first element of the array. 0 is the first element in Java and you access array elements by an index with square brackets, remember!Good code bro, i'm new with Java, can you explain what that means please?