Originally posted by Parka:
Has anyone created a shopping cart before?
How do you guys go about the thinking process. I'm a little lost here as in I don't know where to start.
2nd problem.
I've got a database connection to MSAcess, using a file called Connection.java
Inside my Connection.java, the structure of my code is as below...
public class Connection {
...
main method {
....
try statement containing the code {
....
while (resultset.next()){
for (.......)
pdtTitle[i] = resultSet.getString("pdt_title" ) ;
}}
catch exceptions(){...}
}}
How do I reference the pdtTitle[i] in another class file in the same package?
In the other class file I tried println using...
System.out.println(Connection.pdtTitle[1]);
but I got back null value.
should u not do this instead?
int i=0;while (resultset.next()){
pdtTitle[i] = resultSet.getString("pdt_title" ) ;
i++;}}