java - fetching values from class -
i new java. problem is
i have created class database connections.now want access class methods in class.so have created object of class. when using object access methods of database class showing error
"dbcon(object) cannot resolved type"
i can't understand issue.
please help.
make valid reference.
the error getting because code uses class not able reference class. if these classes in different packages, need add import
line top of class you're working in import dbcon
class.
you should aware case matters. dbcon
not same dbcon
. in java, standard class names should begin uppercase letters , variables lowercase letters. so, class dbcon
@ least named improperly. standard helps identify , resolve problems 1 you're having before ever happen.
finally, highly suggest work sort of ide eclipse. software can make development process easier helping solve common problems these through suggested steps.
Comments
Post a Comment