J Creator - cannot find symbol constructor Customertable(java.lang.String…
My customer table class below compiles correctly
public class Customertable
{
private String cNumber;
private int cName;
private int date;
private int CallLength;
private String Bill;
public Customertable(String cNumberIn, int cNameIn, int dateIn, int CallLengthIn, String BillIn)
{
cNumber = cNumberIn;
cName = cNameIn;
date = dateIn;
CallLength = CallLength;
Bill = BillIn;
}
public void setBill(String BillIn)
{
Bill = BillIn;
}
public String getcNumber()
{
return cNumber;
}
public int cName()
{
return cName;
}
public int getdate()
{
return date;
}
public int getCallLength()
{
return CallLength;
}
public String getBill()
{
return Bill;
}
public String calculateBill(String currentBillIn)
{
return currentBillIn + CallLength;
}
}
This class however gives me the problem cannot find symbol constructor error and I dont know why.
Any help would be much appreciated..
18 minutes ago
- 4 days left to answer.
Additional Details
The code is supposed to be for Implementing a phone billing system for a phone company. Choose a name for the phone company and this name should be displayed on screen. The system should be able to record all calls made by a customer by recording such information as numbers called and the date and length of these calls. Bills should be produced for the customer based on the calls made and the cost per minute of the calls. It should be possible to search the list of calls to find, for example, the calls made to a particular number. Its driving me crazy, this one error...
J Creator - Cannot Find Symbol Constructor Customertable(Java.lang.string…
Started by
SunnyTizzle
, Mar 25 2012 06:50 PM
1 reply to this topic
#1
Posted 25 March 2012 - 06:50 PM
#2
Posted 26 March 2012 - 07:12 AM
At first glance there doesn't seem to be anything wrong with the code you posted so the problem must lie somewhere else.
Could you post your main class as well?
Could you also give some more info on the error? When exactly are you getting this error? What is the full error message and the stack trace?
Could you post your main class as well?
Could you also give some more info on the error? When exactly are you getting this error? What is the full error message and the stack trace?










