Code:
public static void main(String[] args)
{
String inputString;
String firstName;
inputString = JOptionPane.showInputDialog
("Please enter your name followed by a positive integer between 1 and 9999 enclosed in parentheses, such as Cupid(1442).");
firstName = inputString.substring(0,
Leave a comment: