Use of while loop in this code while reading an input of a whole line using scanner? [on hold]
Use of while loop in this code while reading an input of a whole line using scanner? [on hold]
enter image description here
how can we concatenate the two strings, one of them is initialized in code and other string is the user input?
This question appears to be off-topic. The users who voted to close gave this specific reason:
Please read Minimal, Complete, and Verifiable example and enhance your question accordingly. And never ever link to pictures of code or error messages. They are text and need to be in the question.
– GhostCat
Jul 1 at 4:33
Hint: the
+ operator does String concatenation.– Stephen C
Jul 1 at 4:35
+
idownvotedbecau.se/imageofcode
– Andreas
Jul 1 at 5:32
Duplicate of How do I concatenate two strings in Java?
– Andreas
Jul 1 at 5:34
Post the code here please
– user7
Jul 1 at 4:31