Hernan Blanco wrote:Class Vector is member of the java.util package. The description of the add() method is:
add(Object o)
Appends the specified element to the end of this Vector.
There is another implementation of this method: add(int index, Object o) especifying the index where you want add the object. They exist the addElement() and the set() methods, too, that they do similar work.
You have more info here: http://download.oracle.com/javase/1.4.2/docs/api/java/util/Vector.html
Hernan Blanco wrote:Yes, it was the problem. I did the most "elegant" way, as a constructor. And about the Vector class, I paid attention to you, and I changed it to an ArrayList class (List doesn't work beacause is an abstract class).
Even I changed the name of set_player() to SetPlayer() !!
Thanks a lot!!
Hernán.
Hernan Blanco wrote:Yes, an interface, sorry ;). I wrote a similar sentence than your first code line for instatiate the ArrayList.
I don't believe that you know this, but anyway I'm going to ask it:
You know something about GEVA? (Grammatical Evolution in Java) or, if not, you know anybody that can help me with this?
Hernán.