Code example for Vector

Methods: addElement

0
            stream.writeShort(lineno.shortValue());
        } 
    } 
 
    public void addLine(int startpc, int lineno) {
        lines.addElement(new Short((short) startpc));
        lines.addElement(new Short((short) lineno));
    } 
 
    public int length() { 
        return lines.size() * 2 + 8;
    } 
}