Question: Please answer both. Use arrays. 2. Write the following code in the public static void main(String[] args) method to display a 10 row, 15 column

Please answer both. Use arrays.
2. Write the following code in the public static void main(String[] args) method to display a 10 row, 15 column Two Dimensional String Array that has the following pattern. Run your code to check if it works. (Hint: Use two nested for loops if complex if-else statement.) OOOOHH OOOO 1 1 0 0 0 0 OOOOOOOO 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 OOOOOOOO OOOOHH OOOO 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 OOOOOOOO 0 0 0 0 1 1 0 0 0 0 OOOOOOOO OOOOOOOO 0 0 0 0 1 1 0 0 0 0 OOOOOOOO 3. Write the following code in the public static void main(String[] args) method to display a 10 row, 15 column Two Dimensional String Array that has the following pattern. Run your code to check if it works. (Hint: Use two nested for loops if complex if-else statement.) H H H 0 0 0 0 1 1 M M M M 0 0 0 0 1 1 M M 0 0 0 0 1 1 M M M M 0 0 0 0 1 1 M M M M 0 0 0 0 1 1 M M M M 0 0 0 0 1 1 M M M M 0 0 0 0 1 1 M M M M 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 H H 1 1 H H H 1 1 0 0 0 0 H H H 1 1 0 0 0 0 H H H H 1 1 0 0 0 0 H 1 1 0 0 0 0 H H 1 1 0 0 0 0 OOOO M
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
