ariciapersaud7941 ariciapersaud7941
  • 25-12-2020
  • Computers and Technology
contestada

How would you create a 2D array of Strings called paintSwatches that holds the paint manufacturer, paint color name and the paint collection name (in that order) for each of the 60,000 paint swatches a store carries

Respuesta :

IfeanyiEze8899 IfeanyiEze8899
  • 26-12-2020

Answer:

String[][] paintSwatches = new String[6000][3];

Explanation:

The two-dimensional array is a data structure that holds and locates data in rows and columns. It is denoted by two square brackets after the data type when declaring the array.

The two-dimensional array "paintSwatches" would have 6000 rows and one column each of paint manufacturer, paint color name and paint collection name (that is, 3 columns).

Answer Link

Otras preguntas

How do you do unit conversions
what causes the tanning of skin when exposed to UV radiation where is it found?
How do I solve this question?
What social changes resulted from the revolution
Find the coordinates of the points of intersection of the graph of y=13−x with the axes and compute the area of the right triangle formed by this line and coord
Under the articles of confederation, the greatest amount of power was in the hands of the...
Han divided 3 10 by 6. His work is shown below. Is han's answer correct? 3 10  ÷ 6 =  6 10  ÷ 6 =  1 10
If the federal reserve rate sells 40,000 in treasury bonds to a bank at 5% interest what is the immediate effect on the money supply ?
How did johnny appleseed become american hero
3x(x+8)=180 i dont know what to do