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.
This comment is hidden because it contains spoiler information about the solution
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!This comment is hidden because it contains spoiler information about the solution
because it refers to step. range(start, stop, step)
This comment is hidden because it contains spoiler information about the solution