1//As the compiler said, you can't convert a char to a String. 2//If you have a char and you really want to convert it to a String of length 1, 3//this will work:45String s = String.valueOf(c);
6//Or7String s = Character.toString(c);
8
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content