Hey guys, I'm having a little trouble with my Java homework. So far I'm stuck on problem 3.5, C). My code so far is:
package multadd;
/**
*
* @author Josh
*/
public class Main {
public static void multadd (double a, double b, double c) {
System.out.println ( a * b + c);
}
public static void main(String[] args) {
multadd ();
}
}
C) asks that I "write a main method that tests multadd by invoking it with a few simple paramters). I'm confused on how I place the parameters for a, b, and c. Do I need to define the variables? When I try to define them in main, I get the error "cannot find symbol". Currently multadd (); gives me the error "method multadd class multadd.Main cannot be applied to given types. I just don't know what to tackle. An explanation would be greatly appreciated :)