help me to identify the problem with this code
public class Calculate
{
int service;
}
int price(int total, int amount, int currency)//overloading
{
int price(int total, int amount)//overloading
{
return service;
}
}
C:\Users\User\Documents\Calculate.java:12: error: class, interface, or enum expected
int price(int total, int amount, int currency)//overloading
^
C:\Users\User\Documents\Calculate.java:17: error: class, interface, or enum expected
}
^
this is the error: