1

I am new to Java programming and I am struggling and I need help understanding how to write this code for writing a statement public method called calculate interest that accepts account balance and interest rate as arguments. This method should calculate and return the interest by multiplying the two arguments. Thank you in advance for any assistance that can hlp me.

Here is what I came up with below.

```
public class CalculateInterest {
{
public static void main( String [] args )
{
public void calculate(int account bal, int rate) {
double interest = account bal * rate;
System.out.println("Interest is " + interest);
}
}
```