I am implementing a client server application. from the server i am sending a String array, and now i want to read whats in that string array from my client code. How can i do this;
When i print the value from the client i get the output something like [Ljava.lang.String;@120d10
server:
try {
PrintWriter r= (PrintWriter) i.next();
String[] s={"f","ff"};
r.println(s);
r.flush();
} catch (Exception ex) {
}
client:
try {
while ((somestring= r.readLine()) != null) {
//When i print it i get something like [Ljava.lang.String;@120d10
}
} catch (Exception ex) {}