The `circuit()`

method is intended to take the distance a person has moved on a circuit (a track) and translate it into the position they...

# Search Results

Searching for: review

## Individual Exercises

Write a function in Java that uses recursion (no loops) to check if the String `str`

has any char `a`

. Return `true`

if it does and `false`

if it...

Iterate through the given array and return the number of fours.

In mathematics, the **Fibonacci numbers** are the numbers in the following integer sequence, characterized by the fact that every number...

[Based on an exercise at https://codeworkout.cs.vt.edu/]

Given a string, return the string made of its first two chars, so the string...

Given an `int`

, return a `double`

of precisely half the initial value. The `int`

will need to be converted into a `double`

before any other...

Roxy has written a method to count the number of people in her neighborhood, excluding children under 16 and individuals who are only...

Mars' new colony needs your help. This morning, a flurry of distress signals reached Earth, each encrypted with a secret message....

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 two `int`

arrays `a`

and `b`

, each with two elements, return a new array with...

[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...

[Based on an exercise at https://codeworkout.cs.vt.edu/]

Given an array of `int`

values, return true if the group of `n`

numbers at the start...

Complete the method below for evaluating the substring of any string. If the given string is empty, return "Empty". If the parameters are...

What will be the output of the following code?

`public class Answer { System.out.println("Hello World!".substring(6)); } `

[Based on an exercise at https://codeworkout.cs.vt.edu/]

Write a function in Java that takes an `int`

array as its parameter. It should...

[Based on an exercise at https://codeworkout.cs.vt.edu/]

Given an array containing three ints, return the sum of all the elements.

[Based on an exercise at https://codeworkout.cs.vt.edu/]

Write a function in Java that implements the following logic: Given a string,...

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...

The method `wabbajack()`

is defined as follows:

`public String wabbajack(String input) { if (input.length() < 5) { return "Rabbit"; }...`

[Based on an exercise at https://codeworkout.cs.vt.edu/]

Write a function in Java that returns a version of the given array where all the...