Assume the availability of a method named makeStars that can be passed a non-negative integer n and that returns a String of n asterisks.

java

LANGUAGE: JAVA CHALLENGE: Assume the availability of a method named makeStars that can be passed a non-negative integer n and that returns a String of n asterisks. Write a method named printTriangle that receives a non-negative integer n and prints a triangle of asterisks as follows: first a line of n asterisks, followed by a line…

Read More