Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Send Vector <String> through sockets

807569May 31 2006 — edited May 31 2006
i'm having difficulties in the Client side i'm receiving this warning:
"....uses unchecked or unsafe operations." How can i resolve this??

i send a vector like this(server side)
Vector <String> vec = new Vector <String>();

......vec.add("String");............

sale.writeObject(vec);
 sale.flush();
i receive the vector like this:(Client side)
vector = (Vector <String>) entra.readObject();                         
list.setListData(vector); 
 
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2006
Added on May 31 2006
2 comments
159 views