int[][] myVals = new int[3][]
myVals[0] = new int[3];
myVals[1] = new int[10];
myVals[2] = new int[5];
?
The above code depicts a jagged array. What does this mean? Describe the rows and columns that make up this array.
What will be an ideal response?
In a two-dimensional array, each row also is an array. In Java, you can declare each row to have a different length. When a two-dimensional array has rows of different lengths, it is a jagged array because you can picture the ends of each row as uneven. You create a jagged array by defining the number of rows for a two-dimensional array, but not defining the number of columns in the rows.?The array is defined as follows:int[][] myVals = new int[3][]?This statement declares an array with three rows, but the rows are not yet created. Then, the individual rows are declared using the following statements:myVals[0] = new int[3];myVals[1] = new int[10];myVals[2] = new int[5];?myVals[0] has 3 elements/columns.myVals[1] has 10 elements/columns.myVals[2] has 5 elements/columns.
You might also like to view...
A technician has been dispatched to investigate connectivity problems of a recently renovated office. The technician has found that the cubicles were wired so that the network cables were run inside the conduit with the electrical cabling. Which of the following would MOST likely resolve the connectivity issue?
A. Power-cycle the computers and switches to re-establish the network connection. B. Re-run the network cabling through the ceiling alongside the lights to prevent interference. C. Test the wiring in the network jacks for faults using a cable verifier. D. Re-run the network cabling so that they are 12 inches or more away from the electrical lines.
?The _________ audio file format is limited toelectronic musical instruments and other electronic equipment.
Fill in the blank(s) with the appropriate word(s).