I can't figure out what the problem is
Can you help me?
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 method :
public double sub(int a, int b, int c);
{
double calc = ((a-b)/b-c)-a
return calc;
}
The error:
interest.java:9: '.class' expected
sub(int a, int b,int c);
^