The local library needs help keeping track of overdue books. Currently, the library has a record of each book checked out but wishes to...
Search Results
Searching for: coding
Individual Exercises
Write a method that reverses the contents of any given string array, then return the reversed conents as an arraylist. If the given array...
The Student Chapter for the Association for Computing Machinery (ACM) requested your help. Throughout the semester, attendance for the...
Write a function that returns true if a
is even, false otherwise. Just for practice, you must use an if
statement.
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 array of integers as a parameter. It returns true if the elements in the array are unique, false otherwise. For...
Complete this method to return the two String parameters combined (concatenated) together.
Write a Java statement to declare an integer variable with the name hours
that has an initial value of 7.
Complete this method to print out the parameter.
Complete this method to produce the following output:
Every java programmer must understand the difference between a System.out.print...
Complete this method to print the two String parameters combined (concatenated) together.
Complete this method to return the parameter received.
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...
Complete this method to return the sum of the two parameters.
Create a print line that sums variable a and variable b.
create a print line that will cast integer division m as an double.
Complete this method so it prints out the remainder of the two parameters.
Complete this method so it prints out the quotient of the two parameters.
Complete this method so it prints out the product of the two parameters.
Complete this method so it prints out the difference between the two parameters.
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...