menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a 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 it or have another type of code to set the limit.
asked
Aug 18, 2020
23.4k
views
3
votes
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.
Computers and Technology
middle-school
Corban Brook
asked
by
Corban Brook
6.8k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
public int setLimit(parameter) {
if (parameter > 10) {
return 10;
} else {
return parameter;
}
}
Marten
answered
Aug 25, 2020
by
Marten
6.9k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
7.9m
questions
10.5m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org