Click here to Skip to main content
15,894,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I do not understand this question:

"In main method creates a (1) vector (not vector object) of the class type Animals.This should be of size 50"

What I have tried:

i have tried to create it in this way:
Vector<Animal> myAnimals = new Vector<Animal>(50);


did i do it right?
Thank you
Posted
Comments
wseng 12-Mar-18 4:37am    
I think so
Richard MacCutchan 12-Mar-18 5:08am    
There is an easy way to test this. Create an actual Java program and compile it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900