subject

Assume the method dosomething has been defined as follows: public static void dosomething (int[] values, int p1, int p2) { int temp = values[p1]; values[p1] = values[p2]; values[p2] = temp; } what does the method do? group of answer choices
a. it inserts a new value into the array values.
b. it swaps the integer values stored in positions p1 and p2 of the array values.
c. it copies the integer array values to a new array.
d. it moves each element of the array values to a higher index position.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
Assume the method dosomething has been defined as follows: public static void dosomething (int[] va...
Questions
Questions on the website: 13722363