Question: Java Language: can you explain to me the different between length and size? im trying to follow the directions so that numItems holds the number
Java Language: can you explain to me the different between length and size? im trying to follow the directions so that numItems holds the number of elements but its not letting me do storage.size(); whats the solution? Thank you so much
public class BinarySearchSet t public double[] storage; //represent the simple array that holds the list values private int capacity; //holds the length of the storage array private int numItems; // holds the number of the elements/values in the list public Bina rySearchSet() { /* this default constructor will create a storage array of size 6 (an initial size for an empty list)and set the rest of the field members accordingly storage new double[6]; capacitystorage. length; numItems
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
