import javax.swing.JOptionPane; public class MiamiAddressParserTester { public static void main(String[] args) { String prompt = "Enter a Miami, FL address in standard format" + "\n number street , city , state zipcode " + "\n\n(Click Cancel to quit)" ; String input; do { input = JOptionPane.showInputDialog(null, prompt); if (input != null) { try { MiamiAddressParser parser = null; JOptionPane.showMessageDialog(null, profile(parser)); } catch (AddressException axe) { System.out.println(input + "\n" + axe.getMessage()); } } } while (input != null); } //Create an address profile of a Miami FL address //For example: /* ********************************************** ADDRESS PROFILE 11200 SW 8 St, Miami, FL 33199 Number: 11200 Street: SW 8 St City: Miami State: FL ZipCode: 33199 Zone: SW *************************************************/ //@Parameter map: A parser for a Miami, FL address private static String profile(MiamiAddressParser map) { return "Address Profile" ; } }