[Solved] how to create java methods [closed]


I am not going to help you with the complete solution as it seems to be your homework 😉

You should get compilation error on lines System.out.println(CalculateBill1());
System.out.println(CalculateBill2());
System.out.println(CalculateBill3());
because there is no method with definition as void parameter.

you need to pass appropriate parameters to call these methods. For example to call method “CalculateBill1 (double totalDue, double tax, double fees)” you need to call it like below:

System.out.println(CalculateBill1(1.25,5.23,6.0));

Hope this help.

1

solved how to create java methods [closed]