I\'m prompting the user to enter their first and last name but I can\'t figure out how to show just their first and last initials
import javax.swing.*; //import
firstName.charAt(0) returns the char value at the 0 index. That is the first letter of your firstName String.
firstName.charAt(0)