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
Nuetrik [128]
3 years ago
14

Write a static method named contains that accepts two arrays of integers a1 and a2 as

Computers and Technology
1 answer:
pashok25 [27]3 years ago
5 0

Answer:

Sew explaination foe code

Explanation:

import java.lang.*;

import java.util.*;

import java.io.*;

class Main

{

public static Boolean checkSubset(int[] list1, int[] list2)

{

int l = list2.length;

for(int i = 0; i<list1.length-l; i++)

{

Boolean flag = true;

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

{

if(list1[i+j] != list2[j])

{

flag = false;

break;

}

}

if(flag) return true;

}

return false;

}

public static void main(String args[])

{

int[] l1 = {1,6,2,1,4,1,2,1,8};

int[] l2 = {1,2,2};

System.out.println(checkSubset(l1,l2));

}

}

You might be interested in
Order the steps for creating an automatic reply in Outlook.
RSB [31]

Answer:

Select File > Automatic Replies.

Select Send automatic replies.

If you don't want the messages to go out right away, select Only send during this time range.

Choose the dates and times you'd like to set your automatic reply for.

Type in a message.

Select OK.

Explanation:

3 0
2 years ago
Read 2 more answers
Lamp is an acronym for a complete solution of open source software that goes together to build a general purpose web server. whi
Westkost [7]
Answer choices?

LAMP contains <span>Linux, Apache, MySQL, and PHP.</span>
3 0
3 years ago
What are two ways the broad-match modifier makes Jamie's work easier? (Choose two.)
Mariana [72]

Answer:

1) She doesn’t have to think of all the related saucepan keywords

2) She can easily select the colour she wants to focus on.

Explanation:

Broad match modifiers ensure  ads will only show for searches that include the words you’ve marked with a plus sign, such as +blue +suede +shoes. Broad match modifiers can help your keywords reach a greater clickthrough rate (CTR) with a more targeted customer audience, which in turn can help your site get more paying customers or other conversions

4 0
4 years ago
Technician A states that a tap handle has a right-angled jaw that matches the squared end that all taps have. Technician B state
Elena L [17]

Answer:

Technician A and Technician B are correct

Explanation:

Based on the information provided within the question it can be said that both Technician A and Technician B are correct. A tap handle's right-angled jaw allows many different taps to be attached for different types of situation to more comfortably and conveniently handle that situation. Such as a T-shaped tap in order to cut a thread in an awkward space as Technician B has stated.

3 0
3 years ago
Need help with these
AnnyKZ [126]

Answer:

1. D

2. B

3. D

Explanation:

vnasgbaenVmad7kDg Zg

8 0
3 years ago
Other questions:
  • To select all the text in a document, press ____.
    12·2 answers
  • What is the maximum rate at which computers A and B can communicate, via router X? (your answer should be in Mbps)
    12·1 answer
  • How does Taylorism (scientific management used to streamline mass production) resemble a bureaucracy? Select one: a. Routinizati
    5·1 answer
  • Write the name of the tab, command group, and icon that is used to create multilevel lists.
    12·1 answer
  • Why did Herman Hollerith invent the Tabulating Machine?
    10·1 answer
  • Which types of files are saved with the .mp3 and .zip extensions?
    12·2 answers
  • What’s GIGO<br> Please write it in full form
    15·1 answer
  • Define operator precedence ? explain with an example.​
    13·1 answer
  • (2) Design a program to determine if a student is entitled to an incentive granted upon payment of
    13·1 answer
  • Lists Five Examples of simple statement<br>​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!