Cannot Import Anything Java Given Int Array Two Ints Return Array 3 Ints Sorted Value Orde Q37298179

CANNOT IMPORT ANYTHING: JAVA

/** Given an int and an array of two ints, return an array of 3ints sorted in value order.

sort3Ints(5, {3, 7}) -> {3, 5, 7}
sort3Ints(7, {5, 3}) -> {3, 5, 7}
sort3Ints(3, {3, 3}) -> {3, 3, 3}
sort3Ints(3, {3, -4}) -> {-4, 3, 3}
@param intValue int an integer.

@param intArray int[] an array of integers.

@return int[] An array of the three integers sorted as elements.**/

public static int[] sort3Ints(int intValue, int[] intArray){

//your code here

return new int[1];

}//end sort3Ints


Answer


/** * Given an int and an array of two ints, return an array of 3 ints sorted in value order. *

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.