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
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
Science,
2 months ago
World Languages,
2 months ago
Math,
2 months ago
Science,
5 months ago
Computer Science,
5 months ago
India Languages,
10 months ago
History,
10 months ago