the data type "char" in java
java
Solution
Because a char is just a single character. You want to use the String type instead.
void bark(String word) {
System.out.println(word);
}
Problem
why doesnt any of these work: ``` char word = "sds"; char word = 'sds'; myDog.bark("voff"); myDog.bark('voff'); ``` in the object to myDog i have typed: ``` void bark(char word) { System.out.println(word); } ```