I can't figure out what the problem is
Can you help me?
the method :Code:public class test1
{
public static void main (String[] args)
{
int a = 5;
int b = 3;
int c = 0;
double result= sub(int a, int b, int c);
}
The error:Code:public double sub(int a, int b, int c);
{
double calc = ((a-b)/b-c)-a
return calc;
}
Code:
interest.java:9: '.class' expected
sub(int a, int b,int c);
^
