Object
Application_C12
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfmtCustomerContacts
(Customer customer, int... fmt) Format Customer contacts according to a format (0 is default):fmtCustomerName
(Customer customer, int... fmt) Format Customer name according to a format (0 is default):void
Run code of the C12 assignment.
-
Constructor Details
-
Application_C12
public Application_C12()
-
-
Method Details
-
run
Run code of the C12 assignment. -
fmtCustomerName
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
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.
-