Could you tell me what is wrong with this code?

import java.io.*;

import java.lang.String;

import java.util.*;

import java.util.Properties;

import java.io.InputStream;

public class EStoreClient2 {

private void insertTable (Vector value) {

insertStmnt.setString(1, (String)value.get(0)

}

public void static main (String args[]) {

Vector argument = new Vector();

if (args.length > 0) {

for (int i=1; i < args.length; i++) {

argument.add(args);

System.out.println("<argument[]> = " + args);

}

EStoreClient2 estore = new EStoreClient2();

if (args[0].equalsIgnoreCase("-insertitem"))

estore.insertTable(argument);

}

}

}

but it gives me

EStoreClient2.java:18: Method get(int) not found in class

java.util.Vector.

insertStmnt.setString(1, (String)value.get(0));

[901 byte] By [fishball] at [2007-9-26 20:03:09]
# 1
Try value.elementAt(0);Michael Bishop
mbishop78 at 2007-7-3 17:49:12 > top of Java-index,Archived Forums,Java Programming...
# 2
Also one more thingjust use the following at the topimport java.lang.*;import java.util.*;import java.io.*;the * means every class in that package so no need to import the IO package twice.
Manish256 at 2007-7-3 17:49:12 > top of Java-index,Archived Forums,Java Programming...
# 3

> EStoreClient2.java:18: Method get(int) not found in

> class

> java.util.Vector.

> insertStmnt.setString(1,

> nsertStmnt.setString(1, (String)value.get(0));

The method get(int) was introduced into the Vector class starting at JDK1.2. You must be using an earlier version of the JDK.

hungyee at 2007-7-3 17:49:12 > top of Java-index,Archived Forums,Java Programming...
# 4
Thank you , i found this reply helpful :)sincerely,Ravi.
rs_bulusu at 2007-7-3 17:49:12 > top of Java-index,Archived Forums,Java Programming...