Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, sums in the range 10..19...

# Search Results

Searching for: logic

## Individual Exercises

Write a function in Java that implements the following logic: Given three ints, a b c, return true if one of them is 10 or more less than...

Write a function in Java that implements the following logic: Given a number n, return true if n is in the range 1..10, inclusive. Unless...

Write a function in Java that implements the following logic: We are having a party with amounts of tea and candy. Return the int outcome...

Write a function in Java that implements the following logic: Your cell phone rings. Return true if you should answer it. Normally you...

Write a function in Java that implements the following logic: Given 2 ints, `a`

and `b`

, return their sum. However, "teen" values in the...

Write a function in Java that implements the following logic: The squirrels in Palo Alto spend most of the day playing. In particular,...

Write a function in Java that implements the following logic: You are driving a little too fast, and a police officer stops you. Write...

Write a function in Java that implements the following logic: Given a non-negative number `num`

, return true if `num`

is within 2 of a...

Write a function in Java that implements the following logic: Given three ints, `a`

, `b`

, and `c`

, return true if `b`

is greater than `a`

, and `c`

is...

Write a function in Java that implements the following logic: Given three ints, `a`

, `b`

, and `c`

, return true if it is possible to add two of...

Write a function in Java that implements the following logic: You have a red lottery ticket showing ints `a`

, `b`

, and `c`

, each of which is 0,...

Write a function in Java that implements the following logic: You have a blue lottery ticket, with ints `a`

, `b`

, and `c`

on it. This makes...

Write a function in Java to implement the following logic: We want to make a row of bricks that is `goal`

inches long. We have a number of...

Write a function in Java that implements the following logic: Given 3 int values, `a`

, `b`

, and `c`

, return their sum. However, if one of the...

Write a function in Java that implements the following logic: Given 3 int values, `a`

, `b`

, and `c`

, return their sum. However, if one of the...

Write two methods in Java that implements the following logic: Given 3 int values, `a`

, `b`

, and `c`

, return their sum. However, if any of the...

Write a function in Java that implements the following logic: Given three ints, `a`

, `b`

, and `c`

, return true if one of `b`

or `c`

is "close" to `a...`

Write a function in Java that implements the following logic: Given 2 `int`

values greater than 0, return whichever value is nearest to 21...

Write a function in Java that implements the following logic: Given three ints, `a`

, `b`

, and `c`

, one of them is small, one is medium and one...

Write a function in Java that implements the following logic: Given a string, return a string made of its first 2 chars. If the string...

Write a function in Java that implements the following logic: Given a string, return a string of length 1 from its front, unless `front`

is...

Write a function in Java that implements the following logic: Given a string `str`

and a non-empty `word`

, return a version of the original...

Write a function in Java that implements the following logic: Given two strings, `a`

and `b`

, create a bigger string made of the first...

Given a string `str`

, find all places where a three-letter combination starting with "z" and ending with "p" occurs. Return a string where...