I'm creating an array of objects and having an issue in printing this easily
Dog Dogobj[]=new Dog[2]; // Dog objects within this array
Dogobj[0] = new Dog(Age, weight, name);
Dogobj[1] = new Dog(Age, weight, name);
System.out.println("Dog age?: "+Dogobj[0].Dogtype etc.)
Now after creating these I can't find an easy way of printing these that isn't a lot of long lines. This is the only way I have found I can do it (above)- there are about 10 variables for each object so they are very long lines.
toString()method to yourDogclass?