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
Alisiya [41]
3 years ago
7

Using the merge method of the Map interface, which statement correctly updates the salesTotalByDept map of type Map to update th

e sales total for a dept by an integer sales value? Question 3 options: salesTotalByDept.merge(dept, sales,(d,s) -> s + 1); sales.merge(salesTotalByDept, dept, (d,s) -> s + sales); dept.merge(salesTotalByDept, sales, (d,s) -> s + sales); salesTotalByDept.merge(dept, sales, (d,s) -> s + sales);
Computers and Technology
1 answer:
Alexxandr [17]3 years ago
7 0

Answer:

salesTotalByDept.merge(dept, sales, (d,s) -> s + sales);

Explanation:

In the above statement merge() method is being used which updates the salesTotalByDept map of type Map to update the sales total for a dept by an integer sales value.

Here dept and sales both are used and passed as a parameter to merge() method because salesTotalByDept can be update if both the information about sales and department are provided.

Map.merge() method is used to place new value under the given key if the key does not correspond to any value, or is used to update existing key with a given value.

You might be interested in
What are the implications for a company that relies solely on technology to store all of their data ?
romanna [79]

A store that relies solely on technology to store all of their data would be a store that either sells technology or an online store like Amazon

3 0
3 years ago
A corporate office has a huge number of employees. Every employee has a telephone next to their computer so that they can call o
Lemur [1.5K]

Answer:

PBX system.

Explanation:

PBX is an acronym for private branch exchange. It is a private telephone network service that allows users to communicate by making or taking inbound and outbound calls using a gateway, voice mail, transfer calls, call queues and recording.

In an office, employees having a PBX telephone can call other employees in the same office regarding official work.

The callers have to dial a particular extension number so that the intended receiver gets the call.

Example of an extension number is 111-5001 and 111-5002, with a central number as 111-5000.

Hence, the telephone network used in this office is the PBX system.

5 0
3 years ago
Required skills,training,education for dentist
AlekseyPX

Answer:

Education-Bachelor's degree prior to admission to dental school; doctoral degree in dental medicine or dental surgery; some dental specializations require completion of a residency

Skills- Communication skills. Dentists must have excellent communication skills, Detail oriented, Dexterity, Leadership skills, Organizational skills, Patience, Physical stamina, Problem-solving skills.

Explanation:

7 0
3 years ago
Which XXX declares a student's name. public class Student { XXX private double myGPA; private int myID; public int getID() { ret
maw [93]
<h2>Question:</h2>

<em>Which XXX declares a student's name. </em>

public class Student {

   XXX

   private double myGPA;  

   private int myID;

   public int getID() {

        return myID;

   }

}

<em>Group of answer choices </em>

a. String myName;

b. public String myName;

c. private myName;

d. private String myName;

<h2>Answer:</h2>

private String myName;

<h2>Explanation:</h2>

To declare a student's name, the following should be noted.

i. The name of the student is of type <em>String</em>

ii. Since all of the instance variables (myGPA and myID) have a <em>private</em> access modifier, then myName (which is the variable name used to declare the student's name) should be no exception. In other words, the student's name should also have a <em>private</em> access.

Therefore, XXX which declares a student's name should be written as

<em>private String myName;</em>

<em></em>

Option (a) would have been a correct option if it had the <em>private</em> keyword

Option (b) is not the correct option because it has a <em>public</em> access rather than a <em>private</em> access.

Option (c) is not a valid syntax since, although it has a <em>private</em> access, the data type of the variable <em>myName</em> is not specified.

Option (d) is the correct option.

4 0
3 years ago
Which of the following is another word for paradigm?
EleoNora [17]
The best answer choice is model, it is a synonym for the word paradigm

3 0
3 years ago
Other questions:
  • A function operates on this, which may consist of a constant, a cell reference, or another function.
    7·1 answer
  • PowerPoint is great for brainstorming and producing creative pieces because it
    13·2 answers
  • Var faceS = 100; var mouthS = 30; ellipse(200, 200, faceS, faceS); ellipse(200, 220, mouthS, mouthS); How wide is the second ell
    12·1 answer
  • Note: the println() function prints out a line of text with the value that you pass to it - so if you say println("Hi"), it will
    5·1 answer
  • 30% of the mass of an objects is 24 kilograms. use this fact to find:
    6·1 answer
  • which of these tools stick to the edge of an image, thus making it easy to select the shape of an image
    6·1 answer
  • Can someone tell me what this means Higfaa
    6·1 answer
  • 3.1.14 Wormhole CodeHS <br><br> May I have it in a copy and paste, please?
    5·1 answer
  • If int a = 4, int *b = &amp;a , int **c= &amp;b;<br> what is the value store in c.
    15·1 answer
  • How to add a while loop? here's my code
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!