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're trying to use "toUpperCase()" on a char instead of a String. Try
String s1 = ("" + name.charAt(0)).toUpperCase();
It changes the char to a String.
I initially tried
String s1 = name.charAt(0).toUppercase());
But it gave me a char cannot be defererenced error. I don't really understand the error unfortunately.
This one confused me a little because I associated args with the Java main method so didn't know how to reference the array.
Hi,
Thanks for the response. I definitely meant the former so I'll give it a go. I've been learning so far through code gym so it'll be exciting to try something new as well.
Hi,
Depends on what you call "searching solutions on the web".
Enjoy your time coding!
Cheers
I've just joined the site today. Can I ask is it acceptable to try and Google solutions in order to learn this way or are the katas designed to be answered from scratch with no online help?