Ask Question
30 April, 04:04

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.

+3
Answers (1)
  1. 30 April, 05:22
    0
    Public int setLimit (parameter) {

    if (parameter > 10) {

    return 10;

    } else {

    return parameter;

    }

    }
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers