Write the method String convertTime(String time) in Java that implements the following logic: Given a time in 24hr format, often refered...
Search Results
Searching for: condition
Individual Exercises
Write the method String convertPhone(String number) in Java that implements the following logic: Given a phone number as a string of...
Write the method boolean hasPrefix(String word) in Java that returns true if the string in word begins with one of these prefixes:
"pre",...
Write the method boolean hasSuffix(String word) in Java that returns true if the string in word ends with one of these suffixes:
"er",...
Write the method boolean containsRoot(String word) in Java that returns true if the string in word contains inside (see below) one of...
Description
In mathematics, the Pell Numbers follow a familiar recursive structure:
P(n) = 2 * P(n - 1) + P(n - 2) for n > 2
with...
Below is some code your co-worker implemented, but they're asking you for help because it's not working the way they want it to.
The code...
You notice some co-worker's code is both not working and is overly complicated.
The code should act in the following way:
- if value is ...
Below is some code your co-worker implemented, but they're asking you for help because it's not working the way they want it to.
The code...
Below is some code your co-worker tried again to implement letter grade code, but it is still not working the way they want.
The code ...
For this question you can assume you have access to two jeroo variables. One named tom and one named jerry.
Change the if statement so...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
The method below takes in two parameters: a Pixel object called p and a List called list. For this method, if the list has less than 20...
The Rectangle class below has two integer fields to store its length and width. The toString() method should do the following:
- If the...