1. How would you initialize a 2D array of doubles called heightWeight that represents the height and weight of the 25 members of the UNC Charlotte football team? (select all that apply) A. double[][] heightWeight = new double[25][25]; B. double[][] heightWeight = new double[25][2]; C. double[] heightWeight = new double[50]; D. double[][] heightWeight = new double[2][25];

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question
100%
1. How would you initialize a 2D array of doubles called height Weight
that represents the height and weight of the 25 members of the UNC
Charlotte football team? (select all that apply)
A.
double[][] heightWeight = new double[25] [25];
B. double[][] heightWeight = new double[25][2];
C. double[] heightWeight = new double[50];
D. double[][] heightWeight = new double[2][25];
Transcribed Image Text:1. How would you initialize a 2D array of doubles called height Weight that represents the height and weight of the 25 members of the UNC Charlotte football team? (select all that apply) A. double[][] heightWeight = new double[25] [25]; B. double[][] heightWeight = new double[25][2]; C. double[] heightWeight = new double[50]; D. double[][] heightWeight = new double[2][25];
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT