1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Digiron [165]
3 years ago
11

How to set the maximum to 10? Java

Computers and Technology
1 answer:
hichkok12 [17]3 years ago
6 0
Public int setLimit(parameter) {
if (parameter > 10) {
return 10;
} else {
return parameter;
}
}
You might be interested in
For some reason my code is not printing in python. It doesn't give me an error is just not printing no thing shows up
svetoff [14.1K]

Answer:

Whats python? i might be able to help

Explanation:

5 0
3 years ago
What is the use of an NDP?
Makovka662 [10]

Answer:

It defines five ICMPv6 packet types for router solicitation,router advertisement,neighbor solicitation,neighbor advertisement,and network redirects.

Explanation:

8 0
2 years ago
Happy Valentine's day!!
Lorico [155]
Happy valentine’s u too !!
7 0
2 years ago
A file named data.txt contains an unknown number of lines, each consisting of a single integer. Write some code that creates two
dmitriy555 [2]

Answer:

I am doing it with python.

Explanation:

nums = '9 -8 -7 -6 -5 -4 -2 0 1 5 9 6 7 4'

myfile = open('data.txt', 'w')

myfile.write(nums)

myfile.close()

myfile = open('data.txt', 'r')

num1 = (myfile.read())

num1 = num1.split()

print(num1)

print(type(num1))

for x in num1:

   x = int(x)

   if x < 0:

       minus = open('dataminus.txt', 'a')

       minus.write(str(x) + ' ')

       minus.close()

   elif x>= 0:

       plus = open('dataplus.txt', 'a')

       plus.write(str(x)+' ')

       plus.close()

8 0
3 years ago
Read 2 more answers
Class of Service utilizes 8 levels of priority, and modifies the PCP field in an 802.1Q tag.
Alenkasestr [34]

Answer:

True.

Explanation:

When there is delay and congestion in the network, we have to assign priority to some packets to avoid data loss. Class of service (CoS) does this prioritization by grouping similar traffic types such as ,voice, streaming video,e-mail etc. into classes.then it utilizes different levels(usually eight) of priority.It also modifies PCP field in 802.1q tag.

4 0
3 years ago
Other questions:
  • President Roosevelt's Fireside Chats were:
    12·2 answers
  • A network administrator needs information about the printers that employees can access. Where can he find the information? The a
    10·2 answers
  • Which is a function of network media?
    11·2 answers
  • How long does it take a letter to arrive?
    9·1 answer
  • You could be electrocuted if you try to use water to put out a
    14·2 answers
  • Why are medical coders using encoded software
    10·1 answer
  • HELP PLZZ WILL MARK BRAINLIEST
    9·1 answer
  • Extend the class linkedListType by adding the following operations: Write a function that returns the info of the kth element of
    12·1 answer
  • A. Directions: Read the statement carefully. Write True in the space provided if the statement is correct and False if it is not
    6·1 answer
  • Have some points part 6<br>anyone know how to change my username?​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!