This method takes an array of integers as a parameter. It returns true if the elements in the array are unique, false otherwise. For...
Testing 1213
Score: 0 / 20.0
Problems created by Lijuan and Sterling
Exercises
This method takes an array of integers as its parameters and returns nothing. The method moves each element in the array to the right by...
This method takes an integer array as a parameter and returns true if the array includes an odd integer; otherwise, the method returns...
This method accepts two integer arrays as its parameters and returns a new array, which contains all of the elements of first parameter...
This method takes an integer array as a parameter and returns the minimum difference between adjacent values in the array. The difference...
This method takes a String object as a parameter and returns a compressed version of the object. The method compresses the String by...
This methods takes a String object as a parameter and returns an encrypted version of the object. The encryption is done in two steps:...
This method simulates flipping a fair coin. It takes an integer parameter, which specifies the number of times that the coin is to be...
This method simulates flipping a fair coin. The coin is flipped repeatedly until three heads are seen. The method takes an integer...
This method simulates flipping a fair coin. The coin is flipped repeatedly until three consecutive heads are seen. The method takes an...
this method accepts a String object as a parameter. It returns true if the String has all unique characters, false otherwise. For...
This method takes an ArrayList of Strings as a parameter and returns the longest String in the list. If the list is empty, it should...
This method takes an ArrayList of Strings as a parameter and returns the length of the longest String in the list. If the list is empty,...
This method takes an ArrayList of integers as a parameter and does not return anything. The method will expand the list with a mirrored...
This method takes an ArrayList of integers as a parameter and does not return anything. The method will remove all of the odd elements in...
This method takes an ArrayList of integers as a parameter and does not return anything. The method will repeat each odd element in the...
Create a class called Course for a college course that has three or more fields with at least two different types, and set default values...
Given the following class, create a constructor that will take in one parameter for each field, and set the fields to the corresponding...
Given the following class, create a constructor header that will take in a parameter for each field. You do not need to write code inside...
Given the following constructor, set the fields to the corresponding parameters.