Hi,

At first hi everyone. I have problem with sending an array between two agents. I am doing the following:
Java Code:
//First agent
String [] table={"a","b","c"};
ACLMessage replay=msg.createReply(); 
replay.setPerformative(ACLMessage.INFORM);
replay.setContentObject(table);
myAgent.send(replay);
Second agent

Java Code:
String [] table2=null;
 ... 
 if(msg!=null){
 if(msg.setPerformative()== ACLMessage.INFORM) {
  table2=(String [])msg.getContentObject(); ...
 }
But it doesn't copy table to table2. It is only copying the last element; the others are null. What should I correct?