I am trying to declare and instantiate an array named 'canines' that had 25 elements and will hold 'dog' objects... Is this the best way to do this or is there another formate that would be more correct?
canines[25] = Dog
I am trying to declare and instantiate an array named 'canines' that had 25 elements and will hold 'dog' objects... Is this the best way to do this or is there another formate that would be more correct?
canines[25] = Dog
 
    
    Dog[] canines = new Dog[25];
Have a look at some of the many online java resources
