Explore BrainMass

Explore BrainMass

    Explain Java method with Multiple parameters

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    This is about methods with multiple parameters:

    Could you explain to me (in very simple terms) how methods with multiple parameters are declared?

    If possible, could you provide two short examples? I just need to get a head-start so I can implement this to my assignment if it comes up.

    © BrainMass Inc. brainmass.com October 3, 2022, 2:00 am ad1c9bdddf
    https://brainmass.com/computer-science/java/explain-java-method-multiple-parameters-109316

    Solution Preview

    I think you want to know about the distinction between methods with no parameter and methods with more than one parameter. Let's take up the example of a multiplication method.

    An example of a multiply function with no parameters:

    class example1 {
    int a = 10; //using ...

    Solution Summary

    I think you want to know about the distinction between methods with no parameter and methods with more than one parameter. Let's take up the example of a multiplication method.

    $2.49

    ADVERTISEMENT