Copy the program Flatten.java and implement the TBI (To BeImplemented) methods flatten(int[][]) andflatten(String[][]).
You will need to study the code in theprint(int[]) andprint(String[][]) methods to figure out how theflatten() methods “flatten” their 2-dimensional arrayparameter into their 1-dimensional array return value.
Your program cannot contain any importstatements.
Also The output must descend and be exactly how it appearshere:
{ }{ 1, }{ 1, 2, }{ 1, 2, 3, }{ 1, 2, 3, 4, }{ 1, 2, 3, 4, 5, }{ 1, 2, 3, 4, 5, 6, }{ “if”, “else”, “switch”, }{ “while”, “do while”, “for”, }{ “break”, “continue”, }{ “*”, “/”, “%”, “+”, “-“, }{
PayPal Gateway not configured
PayPal Gateway not configured