java - "Cannot find symbol" of variable passed through method -


screenshot showing error

why getting error when referencing variable being passed through constructor?

here complete customer.java class:

import java.sql.resultset; import javax.servlet.http.httpservletrequest;  public class customer {      // sql variables     private final string url = "jdbc:mysql://localhost/books";     private final string user = "root";     private final string password = "p@ssw0rd1";      // class variables     int customerid;     string customeremail;     string customerpassword;     string customerfirstname;     string customerlastname;     string customeraddress;     string customercity;     string customerprovince;     string customerpostalcode;     string customerphonenumber;     string customercreditcardnumber;     string customerexpirydate;     string customercreditcardtype;      // class constructors     public customer(int customerid) // constructor existing customer     {         resultset customerdata = mysqlquery("select * customers customerid=" . customerid);     }     public customer(httpservletrequest post) // constructor new customer     {      }     // constructor methods     public resultset mysqlquery(string query)     {         return queryresultset;     }     // getters , setters } 

this java web project created in netbeans 7.3 in customer.java class inside default package.

you appear using . when meant +.

perchance old php programmer? :-)


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -