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
Vladimir79 [104]
3 years ago
10

How to create a comparator generic type in java.

Computers and Technology
1 answer:
KIM [24]3 years ago
8 0

Answer:

public class Person {

//fields

private int id;

private String name;

private Payment pay;

//constructor

public Person(String name, int id,

int startSal, int startBon){

this.name = name;

this.id = id;

this.pay = new Payment(startSal, startBon);

}

//method get name

public String getName(){

return name;

}

//method get id

public int getId(){

return id;

}

//method get start salary

public int getStartSalary(){

return pay.startSalary;

}

//method get start bonus

public int getStartBonus(){

return pay.startBonus;

}

//inner payment class

private class Payment{

int startSalary;

int startBonus;

public Payment(int sal, int bon){

this.startSalary = sal;

this.startBonus = bon;

You might be interested in
Variable costs are __________.<br><br> A. decreasing<br> B. increasing<br> C. static
lubasha [3.4K]
The answer is A. Decreasing
5 0
3 years ago
How do you create and Make video games for video game consoles
g100num [7]

Answer:

Step 1: Do Some Research & Conceptualize Your Game. ...

Step 2: Work On A Design Document. ...

Step 3: Decide Whether You Need Software. ...

Step 4: Start Programming. ...

Step 5: Test Your Game & Start Marketing

4 0
3 years ago
Read 2 more answers
In the motivational video we watched today, why did R.B.G say that she and The Notorious B.I.G were similar?
Kipish [7]

Answer:

Both were well known, or notorious.

Explanation:

Both the Rapper and the Supreme Court Justice were famous based on their accomplishments ,<u><em> being notorious because of how she Won and argued so many cases , and how B,I.G. had made many popular or famous Rap songs.</em></u>

<u><em /></u>

<u><em /></u>

<u><em>i think this might help !!!</em></u>

3 0
3 years ago
Which of these is NOT an example of intellectual property? O a song you wrote O an article you published O hardware you purchase
solmaris [256]

Answer:

hardware you purchased

Explanation:

Copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.

Patent can be defined as the exclusive or sole right granted to an inventor by a sovereign authority such as a government, which enables him or her to manufacture, use, or sell an invention for a specific period of time.

Generally, patents are used on innovation for products that are manufactured through the application of various technologies.

Basically, the three (3) main ways to protect an intellectual property is to employ the use of

I. Trademarks.

II. Patents.

III. Copyright.

An intellectual property can be defined as an intangible and innovative creation of the mind that solely depends on human intellect. They include intellectual and artistic creations such as name, symbol, literary work, songs, graphic design, computer codes, inventions, etc.

Hence, a hardware you purchased is not an example of an intellectual property.

6 0
3 years ago
this is on an iPad, I just had my hidden photos in my album somewhere and I wanted to unhide them and once I pressed Unhide I co
emmasim [6.3K]

Answer:

View hidden pictures on Mac

If you do not see the Hidden folder under Library in the Photos app on Mac, click View > Show Hidden Photo Album from the menu bar. The album will then appear in your Library on the left.

View hidden pictures on iPhone and iPad

When you’re ready to see those photos, you can view and unhide them if you like.

1.Tap Albums in the Photos

2.Scroll to the bottom under Other Albums and tap Hidden.

3.If you want to unhide a photo, select it, tap the Sharing button, and pick Unhide.

Hope this helps...!

Explanation:

5 0
3 years ago
Other questions:
  • Which file types have .exe and .png as their extensions?
    13·2 answers
  • In what country did true printing first take place?
    12·2 answers
  • How do you make your graphics ADA accessible in BlueGriffon?
    12·2 answers
  • Choose all of the correct answers for each of the following:
    10·1 answer
  • You have a small company and want to keep your cost low, but it is important your employees share data. which network would prov
    13·1 answer
  • Consider a sequence of 1's and 1's with the property that the sum of any prefix of the sequence is never negative For example th
    5·1 answer
  • What is the output of the following program?
    12·2 answers
  • Complete two examples of how scientists, technologists, engineers, and mathematicians may work together to create a new product
    5·1 answer
  • You are creating a program that can add up the amount of money the user spent that day. Right down to the penny! What kind of va
    12·2 answers
  • How have the computers contributed in the banking ?<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!