| Author |
scanner variables into object for insertion into database.
|
paulio macmurray
Greenhorn
Joined: Oct 26, 2009
Posts: 9
|
|
Hi all,
In one class im using scanner to store information, such as forename, surname.
What im trying to do is take those variables, then create a new object and pass those variables into the object, which will then store in the database.
so scanner is
the following is me creating the new object, but the content is static, where i want it to be the variables, but if i replace PAUL with forename, it passes out.
this is my constructor
|
 |
paulio macmurray
Greenhorn
Joined: Oct 26, 2009
Posts: 9
|
|
hi all,
this is as far as i have got but
a) if i javac in cmd, i get 2 errors. its pointing at the N of telNumber, and the P of Personal, saying it cant find symbol.
b) i compile in netbeans, it asks for all the input, but then says "cant connect"
here is the code
|
 |
 |
|
|
subject: scanner variables into object for insertion into database.
|
|
|