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.
Java has dynamic arrays called ArrayList.
But your solution doesn't need them, just think about what Chrono79 said.
It is possible to know its size beforehand.
Strings in Java are immutable, but if you reassign them, your command should do what you want.
str = str.replaceAll(" ","");
If you want to remove all non-visible characters (e.g. tab, \n), go with:
str = str.replaceAll("\s+","")