You could also use:
chars[] chrs = new chars[theString.length];
theString.getChars(0, (theString.length-1), chrs, 0);
this will place each char of the string in the chrs array...
Good point.
StringTokenizer will look for ANY char in the delimeter String and break string apart that way.
A brute force way around would be to use indexOf(":@:") and get substring something like...
ok .. this is from memory so don't grade me on the code writing...this should give...
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html
(Taken from sun website for reference)
is a great source about the bridge. This may also have an answer.
ksolos
use the StringTokenizer class...
StringTokenizer sttoken = new StringTokenizer(theString, ":@:");
while (sttoken.hasMoreElements()){
storeithere = (String)sttoken.nextElement();
}
I completly understand why you want a two dimensional array for your resultset...doing it with a Vector..you can later move the data from a Vector to an Array. Depending on the JDBC support for your particular database, you may be able to get the number of records...sometimes you can't...using...
Create a generic class such as GlobalConstants.class and just create static variables for the variables you want to have global access. If they don't change make them final. Becareful maybe to make them private and create getter and setter methods...i am showing the lazy way.
public class...
does your classpath include the actual classes12.zip file and not just the directory that it's in?
good:
classpath = '.....;...;C:/Oracle/jdbc/classes12.zip'
bad:
classpath = '.....;...;C:/Oracle/jdbc'
if this doesn't address your question...provide more info such as your path settings etc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.