Posts

Showing posts with the label newline

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: Post the code here please – user7 Jul 1 at 4:31 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. – Step...