Append text to a TextView datatype

后端 未结 5 1158
陌清茗
陌清茗 2021-02-05 08:39

I\'m a beginner android/java programmer and my background is primarily in C++ and C#. In C# if I have a string variable called myWord and it has a value of \"Hello\" I can appen

5条回答
  •  爱一瞬间的悲伤
    2021-02-05 09:19

    Your issue is on your declaration of the String instance in both the method and the variable.

    It requires a "S" not a lower case s.

    Also the "+" sign does work, it is just your String declaration as pointed out.

    Here is how it looks

    All the best :)

提交回复
热议问题