Ask Question
31 October, 01:13

How to set the maximum to 10? Java

The code I have right now is

public void setLimit ()

{

if (click> = max)

}

I'm not sure how to continue it or have another type of code to set the limit.

+2
Answers (1)
  1. 31 October, 04:25
    0
    Public int setLimit (parameter) {

    if (parameter > 10) {

    return 10;

    } else {

    return parameter;

    }

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “How to set the maximum to 10? Java The code I have right now is public void setLimit () { if (click> = max) } I'm not sure how to continue ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers