004-008-009
Creating 2D Arrays
Easy
Problem Description
Creating 2D Arrays
In this problem, you will create a program that declares a 2-row, 3-column 2D int array, reads values from standard input, and displays all elements to standard output.
Learning Objective: Understand how to create 2D arrays (multidimensional arrays) and store values read with Scanner
Overview
Create a 2-row, 3-column 2D array and output the values read from input.
Input Format
a b c
d e f
- Line 1: 3 integers for row 0 (space-separated)
- Line 2: 3 integers for row 1 (space-separated)
Output Format
a b c
d e f
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up