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...
Array Practice
Score: 0 / 30.0
Exercises
The following method takes an integer array as a parameter. Write code that loops through the array to find the value 1. If 1 is found,...
Write the method findMin
that will return the smallest number in an array of integers.
Return an array with the same contents, but double the size of the array passed in. The new slots will be filled with zeros. Use the...
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...
Priscilla Perfect detests imperfection (hence the name). Write a program to analyze a given array and return true if the array is worthy...
The mere presence of oversized arrays makes Priscilla Perfect sick to her stomach. Such wasted space is an imperfection she cannot bear....
[Based on an exercise at https://codeworkout.cs.vt.edu/]
Given an array of Strings, return a single String that is made up of all strings...
A local grocery store has asked you to design a method to verify if their produce is okay to put on the shelves. The method takes an...
Return the centered average of an array of int
s, which we'll say is the mean average of the values, except ignoring the largest and...