- Using JOptionPane now (per requirements of homework) to display error
output.