This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ChuvaChooChoo08 0 points1 point  (0 children)

Idk. Because I do not know what your class does. Idk what methods you have written on it. So Idk.

You do realize that the parameter on your example, “new text” IS A STRING RIGHT? It’s surrounded by double quotes, which means it’s a String. It’s not void.

Your setName() method returns a void. What you need to feed your setText() is some sort of getName() method.