Code example for Vector

Methods: toString

0
        resultQueue.clear();
        return result;
    } 
 
    public String toString() {
        return resultQueue.toString();
    } 
 
    class CommandResult { 
        public final int requestID;
        public final String [] result;
 
        public CommandResult(int reqId, String [] result) {
            this.requestID=reqId;
            this.result=result;
        } 
 
        public String toString() {
            return requestID+ " " + result;
        }