(advanced topic)
Here one needs a file called kc.java.
One compiles this using javac, then one can run it after
starting a k section at port 1 using the string
k -i 1
We present here an example of the interaction.
//example
// p prints the result
// k is the entry.
public static void main(String args[]){
try{Socket h=open("",1);
int[]q=new int[1000];
int[] q2;
Object[]w=new Object[2];w[0]=q;w[1]=new Double(2.3);
q[0]=2;q[999]=3;
p(k(h,"+",k(h,"+/",q),new Integer(3))); // h is the socket
q2= (int[]) k(h,"+",q,new Integer(3)); // add 3 to every element of q
p(k(h,"+/",q2));
h.close();}catch(IOException e){}}}