Please correct the above coding in Java
Attachments:

Answers
Answered by
1
Answer:
Use sc.nextLine(); instead sc.next because your username consist of a space and multiline string cannot be used through sc.next
Explanation:
Similar questions