Given two integers a and b passed as arguments to sumints, return the sum of their values.
Search Results
Searching for: cci
Individual Exercises
Given two Points a and b, return the distance between the two points. You should use the Math.sqrt to compute the square root.
Given two Points p1 and p2, return the slope of the line defined by the two points. If the line is vertical the slope is not defined and...
Given two Points a and b and a delta, return true if the two points are within delta units of each other. That is, return true if the...
Given two Points a and b return a rectangle. You must compute the top-left corner of the rectangle and the desired width and height for...
Given a rectangle r, return true if the rectangle is a square. That is, if the width of r equals the height then the rectangle is a...
Given two Points a and b return true if a is the left of b. Returns false otherwise.
Given two Points a and b return true if a is the right of b. Returns false otherwise.
Write a method that reverses the contents of the given string array contents returning an ArrayList<String> with the resutts. If...
Complete the function getElementAt() so that it returns the element nth in the ArrayList contents. Make sure that the parameter nth is a...
Complete the function countStrLongerThan() so that it returns the count of Strings in the ArrayList<String> names that are longer...
Complete the function removeStrLongerThan() so that it removes from strings in the ArrayList<String> names that are longer than ...
The method minVal returns the value of the minimum element in the subsection of the array nums, starting at position first and ending at...
The method minVal returns the value of the minimum element in the subsection of the array nums, starting at position first and ending at...
The method minVal returns the value of the minimum element in the subsection of the array nums, starting at position first and ending at...
Write a method that takes as argument an integer size and returns an integer array of that size. The method should allocate a new array...
Write a method that takes two arguments, the first is an integer size and the second argument, init, is a default value to use to...
Write a method that will make a copy of an array. The method takes one parameter, orig. The method should make a new array the same size...
Write a method that takes an argument representing an array, orig, and returns a new array that is 50% bigger than the original one. The...
For this question, assume we have a stack created and stored in the variable s. This stack supports the usual push(), pop(), and clear()...
For this question, assume we have a stack created and stored in the variable s. This stack supports the usual push(), pop(), and clear()...
For this question, assume we have a stack created and stored in the variable s. This stack supports the usual push(), pop(), and clear()...
For this question, assume we have a stack created and stored in the variable s. This stack supports the usual push(), pop(), and clear()...
The animated image below shows a traversal of a binary tree. Which type of traversal is it?

The animated image below shows a traversal of a binary tree. Which type of traversal is it?
