I am a newbie in java and I need some help
class javaCalculator{
public static void main(String args[]){
float taxRate,mainAmount;
javaCalculator(){This line says semicolon expected and it doesn't like javaCalculator. How do I fix the problem
}
// accessor method
public float getTaxRate(){return taxRate;}
public float getAmount{return mainAmount;}
//mutator method
public void setTaxRate(float this.taxRate){this.taxRate=taxRate;}
public boolean addAmount(float amount){
if(amount>=0)
return true;
else
false;
}
public void delAmount(float amount){
float sub=MainAmount-amount;
}
public float add(float value1,float value2){
return value1+value2;
}
public float totalTax(){
}
class javaCalculator{
public static void main(String args[]){
float taxRate,mainAmount;
javaCalculator(){This line says semicolon expected and it doesn't like javaCalculator. How do I fix the problem
}
// accessor method
public float getTaxRate(){return taxRate;}
public float getAmount{return mainAmount;}
//mutator method
public void setTaxRate(float this.taxRate){this.taxRate=taxRate;}
public boolean addAmount(float amount){
if(amount>=0)
return true;
else
false;
}
public void delAmount(float amount){
float sub=MainAmount-amount;
}
public float add(float value1,float value2){
return value1+value2;
}
public float totalTax(){
}