Code Java:
I received an error state that "actual argument String cannot be converted to char by method invocation conversion". How can I fix the error? Thank you.. :)
Printable View
Code Java:
I received an error state that "actual argument String cannot be converted to char by method invocation conversion". How can I fix the error? Thank you.. :)
Hello Akirien!
The g method's signature indicates that it takes a char parameter. But in your main method you invoke g passing it a String ("Good"). You need to pass it a char parameter to fix the error.
If you actually want it to take a String parameter then you need to 'say' it in the g's signature.
Hope it helps.