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
rodikova [14]
3 years ago
9

Write the definition of a method min that has two int parameters and returns the smaller.

Computers and Technology
1 answer:
swat323 years ago
3 0
<span>public class ExampleMinNumber <span>{
</span></span><span>     public static void main(String[] args) <span>{
          </span></span>int a = 11<span>;
         </span> int b = 6<span>;
</span><span>          int c = minFunction(a, b);
</span><span>     System.out.println("Minimum Value = " + c<span>);
}

</span></span><span>/** returns the minimum of two numbers */
</span><span>public static int minFunction(int n1, int n2) <span>{
    </span></span>int min<span>;
    </span>if (n1 > n2<span>)
       </span>min = n2<span>;
    else 
       min = n1;
  return min;
   }
}
</span>java 8.0
You might be interested in
A customer contacts the help disk stating a laptop does not remain charged for more than 30 minutes and will not charge more tha
Mandarinka [93]

Answer:

Option A, Option B, and Option C are the correct options.

Explanation:

The following options are correct because when any person is facing a problem related to its laptop and he wanted to contact with the customer service agent to solve his problem of the Laptop that is his Laptop battery does not work more than the half-hour and his Laptop's battery not charge more than 15%.

So, his laptop will be facing the problems related to Battery, LCD power inverter, or AC adapter.

8 0
4 years ago
When Google created its China-based search engine www..cn, they did not foresee eventually abandoning it because of censorship i
Setler [38]

Answer:

<u>c. Perpetuating the status quo</u>

<u>Explanation:</u>

Note that Google had in the past benefited from it course of action when it created  France-based search engines www..fr and Greece-based www..gr, which at the time was profitable to them.

Therefore, Google wanted to <u><em>continue</em></u> with the status quo by applying the same strategy in China which lead to the initial decision.

7 0
3 years ago
A computer technician has successfully returned a laptop to full operation and verified system functionality. Actions the techni
lianna [129]

The computer technician has successfully returned a laptop to full operation and verified the system functionality. The actions that were performed by the technician included modifying the registry and applying patches to the operating system. The next step in the troubleshooting process should be to document the solution.

B. Document the solution.

<u>Explanation:</u>

Since the laptop has returned to successful full operation and functionality has bee verified already, rebooting the computer, consulting the manufacturer repair logs and manuals, and testing all the peripherals makes no sense.

The next step is to document the solution that has been used for future reference purposes.  

6 0
4 years ago
9. Alcohol begins to affect your brain
shusha [124]

Answer:

m

Explanation:

4 0
3 years ago
Read 2 more answers
Calculate the cash used to retire debt for each of the six months. Since the company can't pay down more debt than there is cash
BabaBlast [244]

Answer:

The required cash used to retire a debt can be computed as follows:

Cash used to retire debt = cash available to retire a debt, if the cash available to retire debt is less than the loan balance from previous month. Otherwise, cash used to retire debt is equal to the loan balance from previous month.

The excel formula to perform this task is provided as follows:

D33 = IF(D32<C34,D32,C34)

The same formula is used to get the values for E33 to I33.

Explanation:

See the attached picture for table.

5 0
3 years ago
Other questions:
  • Complete the function to replace any period by an exclamation point. Ex: "Hello. I'm Miley. Nice to meet you." becomes:
    9·1 answer
  • Mary can view the thumbnails of her presentation slides when she is creating the slides. Which element of the program’s interfac
    5·2 answers
  • Differences between mechanical and optical mouse <br>Plz help me
    6·1 answer
  • _____ should be scanned for viruses
    13·2 answers
  • The degree to which a firewall can impose user access restrictions is known as which of the following?Security assurancePrivileg
    8·1 answer
  • PLEASE HELP FAST!!!!!!Color photographs often look better on which type of photo paper
    7·1 answer
  • When writing an algorithm, the step after carrying out your plan is "sharing results."
    5·2 answers
  • Which of these is not part of the art director's job?
    9·2 answers
  • Write a program that accepts a whole number as
    5·1 answer
  • ICT Practical Work
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!