Question: Write a complete Java program to read in the user s first and last initials and write them out. I keep getting this error import
Write a complete Java program to read in the users first and last initials and write them out. I keep getting this error import java.util.scanner;
public class Initials
public static void mainString args
Scanner scanner new Scanner
System.in;
System.out.printlnEnter your first initial: ;
char firstInitial scanner.nextcharAt;
System.out.printlnEnter your last initial: ;
char lastInitial scanner.nextcharAttheta;
System.out.printlnYour initials are: firstInitial lastInitial;
scanner.close;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
