public void fillColumn(int column, int fillValue) { for (int i = 0; i < array.length; i++) { array[i][column] = fillValue; } }
Added by Lori S.
Your feedback will help us improve your experience
Akash M and 82 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Declare a two-dimensional rectangular array of integers called data with four rows and seven columns. Write a loop to initialize the third row of data to store the numbers 1 through 7. Once done, print the entire contents of data to the screen.
Akash M.
Given a two-dimensional array x of doubles, write an expression whose value is twice the value of the element in the 3rd row and the 2nd column. Declare a 3x3 two-dimensional array of integers named tic-tac-toe.
How to store a 2d Array in another 2d Array in java?
Chandra J.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD