method:setSize ( length );return type:voidcontent:ใช้กำหนดขนาดของ vectorexample:Vector vector = new Vector ( 20, 10 ); vector.setSize ( 30 );