[solved]-Create New Java Application Called Recursivetriangle Without Quotation Marks According Fol Q39044683
Then create a new Java application called “RecursiveTriangle”(without the quotation marks) according to the followingguidelines.
- Modify the example in Horstmann Section 5.9, pp. 228-230 sothat the triangle displays “in reverse order” as in the examplebelow, which allows the user to set the number of lines to printand the String used for printing the triangle.
- Use a method to prompt the user for the number of lines(between 1 and 10) to print. This method should take no parametersand return an int value.
- Use a method to prompt the user for the string to be used whenprinting the pattern. This method should take no parameters andreturn a String value.
- Use a method called printTriangle that takes an int and aString as parameters (i.e., the return values from the two methodsmentioned above) and has no return value. That method should userecursion to print the “reversed triangle” as in the followingexample.
EXAMPLE: The call to printTriangle(numLines, pattern) shouldprint the following, assuming numLines has the value 4 and patternhas the value “[]”.
[][][][][][][][][][]
MUST BE IN JAVA
Expert Answer
Answer to Then create a new Java application called “RecursiveTriangle” (without the quotation marks) according to the following g… . . .
OR

