Question: Upload PrintPattern.java with a main method as below: - main calls two methods, patternDown ( ) ; and patternUp ( ) ; - that produces

Upload PrintPattern.java with a main method as below:
- main calls two methods, patternDown(); and patternUp();
- that produces output of pattern of stars and numbers as shown below.
- methods MUST use nested loops
```
public static void main (String args[]){
patternDown(); // write nested loop to print a 5 top lines as shown below
patternUp(); // write another nested loop, omit the line with single number 1 so it's
shared
}
// your complete code will follow....
}
```
Hint: See if you can simply modify the code in patternDown method to get the code for patternUp method.
Desired output is shown below:
```
**123456789**
***1234567***
****12345****
*****123*****
*******1******
*****123*****
****12345****
***1234567***
**123456789**
```
Upload PrintPattern.java with a main method as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!