SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it with 1 printf:
printf
System.out.printf("First Name: %s\nLast Name: %s",firstname, lastname);