Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, sums in the range 10..19...
Problem Solve 7 1/2
Score: 0 / 16.0
Exercises
Write a function in Java that implements the following logic: Given a number n, return true if n is in the range 1..10, inclusive. Unless...
Write a function in Java that implements the following logic: We are having a party with amounts of tea and candy. Return the int outcome...
Given an array containing three ints, return the sum of all the elements. It is safe to assume that the array always has at least 3...
Given two int arrays a and b, each with two elements, return a new array with four elements containing all the elements of a followed by...
Given an int array of any length, return a new array of its first 2 elements. If the array is smaller than length 2, use whatever...
Write a function in Java that takes an int array as its parameter and returns the number of even ints it contains. Note: the % "mod"...
Iterate through the given array and return the number of fours.
Return the index of the last occurrence of a given number in an array. Return -1 if the number is not in the array.
Given an int[] array, write a function that returns an array where all the 10's have been removed. The remaining elements should shift...
Return the centered average of an array of ints, which we'll say is the mean average of the values, except ignoring the largest and...
Given a number n, create and return a new int array of length n, containing the numbers 0, 1, 2, ... n-1. The given n may be 0, in which...
Given an array of ints, return true if the array contains a 2 next to a 2 somewhere.
This method takes an array of integers as a parameter. It returns true if the elements in the array are unique, false otherwise. For...
This method takes an integer array as a parameter and returns the minimum difference between adjacent values in the array. The difference...
Finish the for loop below. This method should return an int representing the sum of the numbers from 1 to the parameter n. For example,...