-1

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

user7124275
  • 41
  • 1
  • 4
  • 7

1 Answers1

0
Dog[] canines = new Dog[25];

Have a look at some of the many online java resources

Colin Schoen
  • 2,266
  • 1
  • 14
  • 24