Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Default User Avatar

    This one confused me a little because I associated args with the Java main method so didn't know how to reference the array.

  • Default User Avatar

    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.

  • Custom User Avatar

    Hi,

    Depends on what you call "searching solutions on the web".

    • Searching/reading about algorithm, api, documentation of anykind? Yeah, totally allowed. You'll need that, acctually.
    • stalking github or any other place for solutions and just copy/paste them: no definitely not. That's called plagiarism. We have speicalists at that game. They generally get kicked out sooner or later.

    Enjoy your time coding!
    Cheers

  • Default User Avatar

    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?