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());
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:


Hope this help.

Browse More Popular Posts

Leave a Comment