Description
Consider an interface
Provide four additional classes that implement this interface.
- A DefaultFormatter formats an integer in the usual way.
- A DecimalSeparatorFormatter formats an integer with decimal separators; for example, one million as 1,000,000.
- An AccountingFormatter formats negative numbers with parenthesis; for example, -1 as (1).
- A BaseFormatter formats the number as base n, where n is any number between 2 and 36 that is provided in the constructor.
I have provided the test class which should be included in the submission. It is called NumberFormatterTester.java. Please do not change this class.
Your project should have six files included in the submission.
Please remove any package statements in your program. The program must compile and run from the command line no matter what IDE you use.
Note that a program that does not compile and run and do some part of the assignment will not earn any points.