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
sveta [45]
3 years ago
10

Write the definition of a method, isReverse, whose two parameters are arrays of integers of equal size. The method returns true

if and only if one array is the reverse of the other. ("Reverse" here means same elements but in reverse order.)
Computers and Technology
1 answer:
Marat540 [252]3 years ago
7 0

Answer:

   public static boolean isReverse(int [ ]a, int [ ]b ){

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

       {

           if(!(a[i] == b[a.length-i-1]))

               return false;

       }

       return true;

       }

Explanation:

Using a for loop, we go through the elements of the first array. The if comapres and checks if any of the values are not the same as the appropriate value on the other array, if it is so, then it is not a reverse, and we return false. else  we return true.

You might be interested in
You already know how to use lists. What is the index of 5 in the following list?
otez555 [7]
The answer is 1, the 3rd circle
5 0
3 years ago
Jabez needs to alert through an SMS text message those corporate users who have a specific brand and type of mobile device regar
Maslowich

Answer:

Push notification services.

Explanation:

Push notification services can be used to deliver important messages on mobile devices in an efficient and timely manner. The different mobile platforms such as android, iOS have their services which makes it easy for Jabez to send the messages to users with a specific brand and type of mobile device. The messages will pop up on the mobile device of the user, whether the app or the website associated with notifications is running or not.

7 0
3 years ago
What is a router?
DIA [1.3K]

Answer:

A) a device that sends data to the receiving device

Explanation:

3 0
3 years ago
What key should you press to display the spelling and grammar dialog box
GalinKa [24]
<h3>f7 should open the spelling and grammer dialog box</h3>
7 0
3 years ago
Read 2 more answers
Select the correct answer.
iren2701 [21]
B. A fire wall dropped the packet
5 0
4 years ago
Other questions:
  • Find every number from 1 to n (inclusive) that is a palindrome which starts with the digit 3. Do not user a helper function.
    10·1 answer
  • Apple was a pioneer in user interface development, introducing the _____, complete with mouse and screen icons, in the early 198
    7·1 answer
  • assume that you want to sort an array have 100000 elements which algorithm (insert sort algorithm or quick sort algorithm) is th
    12·1 answer
  • Please select the word from the list that best fits the definition
    8·2 answers
  • When you expand the virtual size of a game, what do you create?
    7·1 answer
  • Someone please tell me please y my ps4 controller won’t charge:(
    12·2 answers
  • You need to know more than just facts in order to use critical thinking skills.
    5·1 answer
  • Create a set of functions that compute the mean, median, and mode of a set of
    8·2 answers
  • Explain why a holiday on a cruise liner will be an ideal holiday​
    12·1 answer
  • Q3: What do you mean by a pointer to a pointer? Can this be extended?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!