Write a program in java using methods that is able to multiply two numbers.

Use the following numbers for the first variable use=50.2, second variable use=10.2

public class Multiplication {


public static void main(String[] args) {
double num1 = 50.2;
double num2 = 10.2;

double result = multiply(num1, num2);

System.out.println("The result of multiplying " + num1 + " and " + num2 + " is: " + result);
}

public static double multiply(double a, double b) {
return a * b;
}
}