I have an array storing few int numbers. I want to pass this array into the server side so that the server can calculate the sum of the numbers inside the array and send back the results into the client. How could I do that?
public static void main(String args[]) {
int[] num = new int[]{0,1,2,3};
if(msg.equalsIgnoreCase("num")){ // msg is user input
// send that array to the server
}
}