Computer Science, asked by sahejtuli0711, 5 months ago


Naming Requirements:
These are the names you are required to use for your lab project. Make sure the letter casing is also the same (for example, Example.java is not the same as example.java).

● Java file name: 2DArrays.java
● Main class name: 2DArrays
Core Requirements:

PART 1
Declare and create a two-dimensional array of strings named COLORS. Put the colors (“brown”, “orange”, “yellow”) in the first row, and the colors (“Purple”, “Pink”, “White”) in the second row. Then print every value in the array.

PART 2
Print the number of rows (outer array) in the given two-dimensional array, then print the number of columns (inner array).
Ex. The array { {“hello”,”there”,”world”},{“how”,”are”,”you”} } should print: Rows: 2
Columns: 3


pls help

Answers

Answered by koyalavimalagmailcom
0

Answer:

Naming Requirements:

These are the names you are required to use for your lab project. Make sure the letter casing is also the same (for example, Example.java is not the same as example.java).

● Java file name: 2DArrays.java

● Main class name: 2DArrays

Core Requirements:

PART 1

Declare and create a two-dimensional array of strings named COLORS. Put the colors (“brown”, “orange”, “yellow”) in the first row, and the colors (“Purple”, “Pink”, “White”) in the second row. Then print every value in the array.

PART 2

Print the number of rows (outer array) in the given two-dimensional array, then print the number of columns (inner array).

Ex. The array { {“hello”,”there”,”world”},{“how”,”are”,”you”} } should print: Rows: 2

Columns: 3

pls help

Similar questions