Question: 1. Take an integer (n) and String (s) as user input and create a String array and fill them up with alphabets. n will

1. Take an integer (n) and String (s) as user input and create a String array and fill them up with

1. Take an integer (n) and String (s) as user input and create a String array and fill them up with alphabets. n will indicate the number of rows and s= (INC/DEC) will indicate whether it's an increasing array or a decreasing array. For Example: i. ii. n = 5 and s= "INC", the array should look like this: a a a a a a a a b b b b b b n = 3 and s="DEC", the array should look like this: d C P e

Step by Step Solution

3.48 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It looks like youre asking for assistance in creating a String array based on user input that will e... View full answer

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!