News

To create this type of array in Java, ... Here, you might use the numbers as the values and the names of the contacts as the index. So “197701289321” could be given the key “Jeff.” ...
Names for arrays have to respect the usual Java variable naming conventions. Creating and initializing an array Now we need to create an array object and initialize our variable with it.