Question: 1 public class StarsNumbers { 3 4 5 60 7 8 9 10 11 12 13} 14 public static void main(String args[]) { patternDown();

1 public class StarsNumbers { 3 4 5 60 7 8 910 11 12 13} 14 public static void main(String args[]) { patternDown();

1 public class StarsNumbers { 3 4 5 60 7 8 9 10 11 12 13} 14 public static void main(String args[]) { patternDown(); patternUp(); } public static void patternDown() { for (int i = 1; i = 1; i--) { for (int j = 1; j = i; k--) { System.out.print(k); } System.out.println(); 27} 28 Upload StarsNumbers.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 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 pattern Down method to get the code for patternUp method. Desired output is shown below: **123456789** ***1234567*** ****12345**** *****123***** ****** *****123***** ****12345**** ***1234567*** **123456789**

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!