Results 1 to 2 of 2

Thread: ใช้ vector แทน array

  1. #1
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    ใช้ vector แทน array

    [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]

  2. #2
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: ใช้ vector แทน array

    ศึกษาการใช้งานเพิ่มเติมที่
    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

Similar Threads

  1. Vector Magic
    By nayoff17 in forum ทิปหรือเคล็ดลับการคอมพิวเตอร์ต่างๆ
    Replies: 0
    Last Post: 20-02-2008, 11:21 PM
  2. Vector Pack For Illustrators
    By xtra in forum Window Application
    Replies: 0
    Last Post: 09-10-2007, 01:02 PM
  3. Replies: 0
    Last Post: 16-09-2004, 02:11 AM
  4. Replies: 1
    Last Post: 16-12-2003, 06:50 PM
  5. Replies: 0
    Last Post: 25-11-2003, 07:55 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •