Need help with Java, can you do the Ex2 referred to the Ex1please.
Exercise 1: NumberFormatter Interface
Consider an interface
public interface NumberFormatter
{
String format(int n);
}
Please provide four classes that implement this interface. ADefaultFormatter formats an ingeter in the usual way. ADecimalSeparatorFormatter formats an integer with decimalseparator; for example, one million as 1,000,000. AnAccountingFormatter formats negative numbers with parentheses; forexample, -1 as (1). A BaseFormatter formats the number in base n,where n is any number between 2 and 36 that is provided in theconstructor.
Please test your implementation of these four classes using aseparate tester class named Ex1. The main method in class Ex1starts your
PayPal Gateway not configured
PayPal Gateway not configured