Java Help Triangle Pattern public static void triangle(int m, int n) // Precondi
ID: 3768869 • Letter: J
Question
Java Help
Triangle Pattern
public static void triangle(int m, int n)
// Precondition: m <= n
// Postcondition: The method has printed a pattern of 2*(n-m+1) lines
// to the standard output. The first line contains m asterisks, the next // line contains m+1 asterisks, and so on up to a line with n asterisks. // Then the pattern is repeated backwards, going n back down to m.
/* Example output:
triangle(3, 5) will print this:
*/