You are writing code using a jeroo named jaime
. Change the following if-then statement's condition so that jaime
will hop only if there...
Exercises
You are writing code using a jeroo named jaime
. Change the following if-then statement's condition so that jaime
will hop only if there...
For this question you writing code for named erin
. Change the if statement to a while loop so that erin
will continue turning left until...
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 we will be working with a constructor for a the TestingJeroo
class again
public class TestingJeroo extends Jeroo {...
For this question we will be working with a constructor for a new Jeroo child class called TestingJeroo
public class TestingJeroo extends...
For this question we will be writing a constructor for a new Jeroo child class called TestingJeroo
public class TestingJeroo extends...
The code below finds the largest number in an int
array. What is the growth rate, Big O(), of this method?
// Return the position of...
The code below finds a specific number in an int
array. What is the growth rate, Big O(), of this method, on average?
static int...
The code below finds a specific number in an int
array. What is the best case estimation for performance, Big O(), for this method?
...
The code below finds a specific number in an int
array. What is the worst case estimation for performance, Big O(), for this method?
...
The code below counts the number of elements that appear in duplicate in an array. Which of the folowing statements are true?
static int...
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...
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...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. This...
For this question, you will implement a method called hopManyAndTurn()
that could be placed in a Jeroo
subclass. This method takes in two...
A Jeroo
named pat
is at the jeroo olympics to cheer on two friends competing in the high jump. These jeroos can jump super high....
A Jeroo
named pat
only wakes up and hops when it is time. Implement the following method called wakeUp()
that takes pat
, two integers,...