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
You can use chatAt() method.
chatAt()
JOptionPane.showMessageDialog(null, "Your initials are " + firstName.charAt(0) + " " + lastName.charAt(0));