I'm trying to set the text of a TextView
to say "(+teamName) Score:"
What I currently have:
textview1.setText(+teamName "Score:");
contains an error because the standard format is supposed to be ("" + teamName)
How would I make it display the TextView
THEN quotes? Is this even possible?
(note: teamName
points to a string)
It's possible. Use the +
where it's needed, between the String variable (teamName
) and "Score: "
textview1.setText(teamName + " Score:");