Package application

Class Application_C12

Object
Application_C12
All Implemented Interfaces:
Runner

public class Application_C12 extends Object implements Runner
Class that implements the Runner interface with run(String[] args) method that executes tasks of the C12 assignment.
Version:
"C12-1.0.0-SNAPSHOT"
Author:
"sgraupner"
  • Constructor Details

    • Application_C12

      public Application_C12()
  • Method Details

    • run

      public void run(String[] args)
      Run code of the C12 assignment.
      Specified by:
      run in interface Runner
      Parameters:
      args - commands passed from the command line
    • fmtCustomerName

      public String fmtCustomerName(Customer customer, int... fmt)
      Format Customer name according to a format (0 is default):
       fmt: 0: "Meyer, Eric"  10: "MEYER, ERIC"
            1: "Eric Meyer"   11: "ERIC MEYER"
            2: "Meyer, E."    12: "MEYER, E."
            3: "E. Meyer"     13: "E. MEYER"
            4: "Meyer"        14: "MEYER"
            5: "Eric"         15: "ERIC"
       
      Parameters:
      customer - Customer object.
      fmt - name formatting style.
      Returns:
      formatted Customer name.
    • fmtCustomerContacts

      public String fmtCustomerContacts(Customer customer, int... fmt)
      Format Customer contacts according to a format (0 is default):
       fmt: 0: first contact: "anne24@yahoo.de"
            1: first contact with extension indicator: "anne24@yahoo.de, (+2 contacts)"
            2: all contacts as list: "anne24@yahoo.de, (030) 3481-23352, fax: (030)23451356"
       
      Parameters:
      customer - Customer object.
      fmt - name formatting style.
      Returns:
      formatted Customer contact information.