For this question, create an array of Strings of length 10. You do not need to change any values in that array, simply create it and...
Search Results
Searching for: create
Individual Exercises
The following method takes in an int called size
. For this question, create an array of booleans of length size
. You do not need to...
The following method takes in an int called size
and a double called value
For this question, create an array of doubles of length size
....
The following method takes in an int called size
, a String called value
, and an int index
For this question, create an array of Strings...
The following method takes in an array of integers called numbers
. Implement the method so that it increases the value of each item in...
The following method takes in an int
called size
and an int
called value
. Create an array of integers of size size
, and set every slot in...
Create a Set
that can hold a series of ages. All ages will be whole numbers (meaning no decimal point) represented as Integer
values. You...
For this question, create a Set
that can hold a set of names (ex. "Heather"). You do not need to add any values to the set, just create...
For this question, create a Set
that can hold a series of temperature values. All values will have a decimal point (no integers). You do...
Consider the following class definition:
class Link{ Object data; Link next; public Link(Object data, Link next) { this.data = data;...
Write a function in Java that takes in the int[] array
, sorts it using bubble sort, then returns back the sorted array.
May Tricks owns a chain of magic shops. She hands you a list of her store locations and asks you to find a way of quickly looking up the...
Given a size
for an array and the initial
value, create and return a new int
array that is initialized with initial
stored in all the...
For this question, assume the following implementation of the class Person and the following UML diagram
Person Class Implementation
...
For this question, assume the following implementation of the class Person and the following UML diagram
Person Class Implementation
...
Create a struct called color
that holds three member integers called red
,green
, and blue
.
For this question assume the following implementations of Computer, Tablet, and Notebook
public class Computer { private String...
The following myProgram()
method creates a Jeroo
and adds it to the island at (1, 1). Change the code so the Jeroo
begins facing north 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...
Using this class definition:
public class node<E> { //... instance variables public node(E d, node<E> n) { this.data = d;...