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
Olegator [25]
3 years ago
12

In this problem, you will write three methods to:

Computers and Technology
1 answer:
gulaghasi [49]3 years ago
8 0

Answer:

see explaination for program code

Explanation:

program code below:

class Names{

public static String[] makeNames(String[] array1, String[] array2){

if(array1.length == 0) return array2;

if(array2.length == 0) return array1;

String[] res = new String[array1.length*array2.length];

int k = 0;

for(int i=0;i<array1.length;i++){

for(int j=0;j<array2.length;j++){

res[k++] = array1[i] + " " + array2[j];

}

}

return res;

}

public static String[] makeNames(String[] array1, String[] array2, String[] array3){

return makeNames(makeNames(array1, array2), array3);

}

public static void print(String[] array){

for(String name : array){

System.out.println(name);

}

}

public static void main(String[] args) {

String[] first = {"David", "Mike", "Katie", "Lucy"};

String[] middle = {"A","B", "C", "D", "E"};

String[] last = {};

String[] names = makeNames(first, middle, last);

print(names);

print(names);

}

}

You might be interested in
Cassie is worried about credential management on a network where users often have over six passwords to remember. She’s curren
nadya68 [22]

Answer:

Use a password manager

Explanation:

It is a disadvantage to use usernames and passwords for account authentication is a fundamentally defective security mechanism.

Your pet's name and other nomenclatures are very easy for hackers.

Advantages of a password manager:

  • Most password managers use multifactor authentication.
  • The information is stored, in encrypted form, on the servers operated by the providers; This is a strong enough security.
  • Examples of password managers LastPass, 1Password, Bitwarden, RoboForm, Intuitive Password, Dashlane, RoboForm etc.
5 0
4 years ago
What are the parts of a file?​
n200080 [17]

Answer:

A computer file is made up of three elements: characters, fields and records.

Explanation:

Hope this helps! :D

7 0
3 years ago
In French class, Blue puts on a visor and the environment changes to that of a café in Paris. Which of the following terms descr
tresset_1 [31]

Answer:

virtual reality

Explanation:

8 0
3 years ago
Read 2 more answers
I want to know why almost every single "expert answer verified" thing I come across is wrong. If it's wrong, why the h is it exp
Studentka2010 [4]

Answer:

Because people just give out the verified things to the first person to answer their question

Explanation:

3 0
3 years ago
Read 2 more answers
Select the items that can be measured.
Slav-nsk [51]

Answer:

distance

capacity

smoothness

thickness

4 0
3 years ago
Read 2 more answers
Other questions:
  • The condition, ____, entered in the criteria row of a long text field in a query window would retrieve all records where the lon
    8·1 answer
  • An operating system cannot run from an external drive. true or false
    15·1 answer
  • Which question best addresses the issue of risk with a new job?
    7·2 answers
  • Oday's color display devices represent color using the ______ color model.â
    13·1 answer
  • What characters cannot be used in a filename?
    15·1 answer
  • When is 1600 plus 25 and 1700 minus 35 the same thing?​
    10·1 answer
  • What are Database administrators? <br> Thank you :)
    7·1 answer
  • Which of the following is an example of group dynamics?
    8·1 answer
  • Electronic evidence on computer storage media that is not visible to the average user is called​ ________.
    14·1 answer
  • Aii so is anyone pushing P?<br> if u are u a g
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!