[src]import java.util.Vector;
Vector myVector = new Vector();
myVector.add("Hello"); //adds the string 'Hello' to the vector object
myVector.add("hi"); //adds the string 'hi' to the vector object.
[/src]
[src]import java.util.Vector;
Vector myVector = new Vector();
myVector.add("Hello"); //adds the string 'Hello' to the vector object
myVector.add("hi"); //adds the string 'hi' to the vector object.
[/src]
ศึกษาการใช้งานเพิ่มเติมที่
http://java.sun.com/j2se/1.3/docs/api/java...til/Vector.html
หรือจะใช้ stack แทนก็ได้
http://java.sun.com/j2se/1.3/docs/api/java...util/Stack.html
Actions : (View-Readers)
There are no names to display.