-4

Can someone tell me what's wrong about this String:

String name = bundle.getString("textViewName");

String smsBody = "Hello!" +name "have gone missing.";

In the second line I get an error. But this works:

String name = bundle.getString("textViewName");

String smsBody = "Hello!" + name;

I need more text after I print the name. Does someone know how?

Yurets
  • 3,999
  • 17
  • 54
  • 74
naSSa
  • 31
  • 4

1 Answers1

1

Add a + after name.

String smsBody = "Hello!" + name + "have gone missing.";
RSon1234
  • 394
  • 4
  • 14