menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
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 se…
Ask a Question
Questions
Unanswered
Tags
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 se…
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 & Tech
middle-school
Corban Brook
asked
by
Corban Brook
7.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
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 9, 2024
9.3k
views
MAKE THE CHANGES import java.lang.Math; class Main { public static void main(String[] args) { int max = 9; int min = 0; int loops = 3; int coin1 = 0; int coin2 = 0; for (int i =0;i = coin2)){ System.out.
Wwl
asked
Jun 9, 2024
by
Wwl
8.2k
points
Computers & Tech
high-school
1
answer
4
votes
9.3k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
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
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty