I thought I would be able to create to separate methods to calculate a sum and a product.
public class Solution {
public static void main(String[] args) {
int c = 5;
int d = 7;
sum(c, d);
product(c, d);
}
public sum(a, b){
System.out.print(a + b);
}
public product(a, b){
System.out.print(a * b);
}
}
Why isn't this working?