Answered You can hire a professional tutor to get the answer.
Consider an interface p ublic interface NumberFormatter { String format (in n); } Provide four classes th at implement this interface. A DefaultFormatter formats an integer in the usual way. A Decimal
Consider an interface p ublic interface NumberFormatter { String format (in n); } Provide four classes th at implement this interface. A DefaultFormatter formats an integer in the usual way. A DecimalSeparatorFormatter formats an inte ger with decimal separators ; for example, one million as 1,000,000. An AccountingFor matter 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. Write a method that takes an array of integers and a NumberForma tter object and prints each number on a separate line, formatted with the given formatter. The numbers should be right aligned. Provide a test class th at shows the program working with an array of numbers. (Java)