SyntaxFix
Write A Post
Hire A Developer
Questions
use sc.nextLine(); two time so that we can read the last line of string
sc.nextLine() sc.nextLine()