CJCoding With Joseph
15per day
TitleTopicsAction
94
Create a Person ClassCreate a class named Person with one private member: String name. Requirements:...
easy○ Not Started
Classes
Solve
95
Create a Cat ClassCreate a class named Cat with one private member: String sound. Requirements: 1...
easy○ Not Started
Classes
Solve
96
Create a Car ClassCreate a class named Car with one private member: String brand. Requirements: 1...
easy○ Not Started
Classes
Solve
97
Create a Lamp ClassCreate a class named Lamp with one private member: boolean isOn. Requirements: ...
easy○ Not Started
Classes
Solve
98
Create a Counter ClassCreate a class named Counter with one private member: int count. Requirements: ...
easy○ Not Started
Classes
Solve
99
Create a City ClassCreate a class named City with one private member: String name. Requirements: 1...
easy○ Not Started
Classes
Solve
100
Set and Get a Dog NameCreate a class named Dog with one private member: String name. Requirements: 1....
easy○ Not Started
Classes
Solve
101
Set and Get an AgeCreate a class named Student with one private member: int age. Requirements: 1....
easy○ Not Started
Classes
Solve
102
Set and Get a Book TitleCreate a class named Book with one private member: String title. Requirements: ...
easy○ Not Started
Classes
Solve
103
Set and Get a Light StateCreate a class named Light with one private member: boolean on. Requirements: 1...
easy○ Not Started
Classes
Solve
104
Set and Get a ScoreCreate a class named Game with one private member: int score. Requirements: 1. ...
easy○ Not Started
Classes
Solve
105
Person With Name ConstructorCreate a class named Person2 with one private member: String name. Requirements...
easy○ Not Started
Classes
Solve
106
Rectangle With Width and HeightYou are building a Rectangle class. It has two private int fields: width and hei...
easy○ Not Started
Classes
Solve
107
Account With BalanceCreate a class named Account with one private member: double balance. Requireme...
easy○ Not Started
Classes
Solve
108
Movie With Title and RatingCreate a class named Movie with two private members: String title and int rating...
easy○ Not Started
Classes
Solve
109
Point With X and YCreate a class named Point with two private members: int x and int y. Requireme...
easy○ Not Started
Classes
Solve
110
Set and Get a UsernameCreate a class named User with one private member: String username. Requirement...
easy○ Not Started
Classes
Solve
111
Set and Get a TemperatureCreate a class named Thermometer with one private member: double temperature. R...
easy○ Not Started
Classes
Solve
112
Set and Get a Favorite ColorCreate a class named Profile with one private member: String favoriteColor. Req...
easy○ Not Started
Classes
Solve
113
Set and Get a SpeedCreate a class named Vehicle with one private member: int speed. Requirements: ...
easy○ Not Started
Classes
Solve
114
Set and Get a BalanceCreate a class named Wallet with one private member: double balance. Requiremen...
easy○ Not Started
Classes
Solve
115
Triple Constructor - Book InfoCreate a class named BookInfo with three private members: String title, String a...
easy○ Not Started
Classes
Solve
116
Triple Constructor - Point3DCreate a class named Point3D with three private members: int x, int y, int z. R...
easy○ Not Started
Classes
Solve
117
Triple Constructor - CourseCreate a class named Course with three private members: String name, String code...
easy○ Not Started
Classes
Solve
118
Triple Constructor - EmployeeCreate a class named Employee with three private members: String name, String ro...
easy○ Not Started
Classes
Solve
119
Triple Constructor - RecipeCreate a class named Recipe with three private members: String name, int serving...
easy○ Not Started
Classes
Solve
120
SeniorPass SubclassConsider the TransitPass and StudentPass classes shown below. Define a subclass ...
easy○ Not Started
Classes
Solve
121
Seekable InterfaceDefine an interface called Seekable so that both Podcast and LiveStream can impl...
easy○ Not Started
Classes
Solve
122
Abstract Subscription ClassWrite an abstract class called Subscription with the following requirements: - ...
easy○ Not Started
Classes
Solve
123
OnlineSubscription calcMonthlyCostUpdate this class called OnlineSubscription that extends Subscription. You need ...
easy○ Not Started
Classes
Solve
126
Podcast Implements SeekableCreate a class Podcast that implements the Seekable interface. Track an integer ...
easy○ Not Started
Classes
Solve
127
LibraryCard GettersCreate a class named LibraryCard with two private fields: String owner and int c...
easy○ Not Started
Classes
Solve
128
LibraryCard toStringCreate a class named LibraryCard with private fields owner and cardNumber. Over...
easy○ Not Started
Classes
Solve
129
StudentPass OverrideCreate a class StudentPass that extends TransitPass. The constructor takes baseF...
easy○ Not Started
Classes
Solve
130
InvalidAgeException ClassCreate a checked exception class InvalidAgeException that extends Exception. It ...
easy○ Not Started
Classes
Solve
131
Rectangle AreaCreate a class Rectangle with private int width and height. Add a constructor to...
easy○ Not Started
Classes
Solve
133
Point2D CloneCreate a class Point2D with int x and y. Implement clone() to return a new Point...
easy○ Not Started
Classes
Solve
134
Display Fare HelperCreate a class FareHelper with a static method displayFare(TransitPass pass, int...
easy○ Not Started
Classes
Solve
170
Create a Simple Generic Box ClassCreate a generic class named `Box<T>` that stores one item. Add a private field ...
easy○ Not Started
GenericsClasses
Solve
171
Add a Setter to a Generic BoxComplete the `setItem` method so the generic `Box<T>` object can update its stor...
easy○ Not Started
GenericsClasses
Solve
173
Build a Generic Pair ClassComplete the `Pair<T>` class. Both fields are already declared. Add a constructo...
easy○ Not Started
GenericsClasses
Solve
174
Create a Key Value Pair ClassComplete the `KeyValuePair<K, V>` class. The fields are already declared. Add a ...
easy○ Not Started
GenericsClasses
Solve
181
Make a Generic Wrapper ClassComplete the `Wrapper<T>` class. The field is already declared. Add a constructo...
easy○ Not Started
GenericsClasses
Solve
191
Extend a Dog from AnimalA base class `Animal` is provided with a `name` field and a `speak()` method tha...
easy○ Not Started
InheritanceClasses
Solve
192
Override toString in StudentA `Person` class is provided with a `name` field. Complete the `Student` class t...
easy○ Not Started
InheritanceClasses
Solve
193
Implement a Greetable InterfaceAn interface `Greetable` is provided with one method: `String greet()`. Complete...
easy○ Not Started
InterfacesClasses
Solve
194
Abstract Shape with CircleAn abstract class `Shape` is provided with an abstract method `double area()`. C...
easy○ Not Started
Abstract ClassesClasses
Solve
195
Inherit and Call Super MethodA `Vehicle` class is provided with a method `describe()` that returns `"I am a v...
easy○ Not Started
InheritanceClasses
Solve
135
Playlist Deep CopyCreate a class Playlist that implements Cloneable. It stores a String[] songs. I...
medium○ Not Started
Classes
Solve
136
Total Fare for PassesWrite a static method totalFare(TransitPass[] passes, int trips) that returns th...
medium○ Not Started
Classes
Solve
139
Media and Playable SongCreate a Song class that extends an abstract Media class and implements Playable...
medium○ Not Started
Classes
Solve
140
Comparable StudentImplement Comparable<Student> so that higher GPA is considered greater. Return a...
medium○ Not Started
Classes
Solve
141
Rethrow ArithmeticExceptionComplete the program so it prints the correct letters by catching and rethrowing...
medium○ Not Started
Classes
Solve
142
BusPass toStringCreate a class BusPass that extends TransitPass and adds a String zone field. Ov...
medium○ Not Started
Classes
Solve
143
CourseRoster Deep CopyCreate a copy constructor for CourseRoster that deep copies the students array. ...
medium○ Not Started
Classes
Solve
144
Count Free RidesWrite a static method countFreeRides(TransitPass[] passes, int trips) that retur...
medium○ Not Started
Classes
Solve
149
Build a Sphere ClassComplete the Sphere class with: a constructor that stores the radius, `getRadius...
medium○ Not Started
Classes
Solve
176
Swap the Values in a Generic PairComplete the `swap()` method in the `Pair<T>` class so it exchanges the values o...
medium○ Not Started
GenericsClasses
Solve
185
Create a Generic Student RecordComplete the `StudentRecord<T, U>` class. The fields are already declared. Add a...
medium○ Not Started
GenericsClasses
Solve
196
Employee Salary InheritanceCreate a `Manager` class that extends the provided `Employee` class. Requiremen...
medium○ Not Started
InheritanceClasses
Solve
197
Abstract BankAccount with WithdrawAn abstract class `BankAccount` is provided with a `balance` field, a `deposit(d...
medium○ Not Started
Abstract ClassesClasses
Solve
198
Implement Resizable InterfaceAn interface `Resizable` is provided with two methods: `void resize(double facto...
medium○ Not Started
InterfacesClasses
Solve
199
Abstract Appliance with Power TrackingAn abstract class `Appliance` is provided with a `boolean isOn` field (starts fa...
medium○ Not Started
Abstract ClassesClasses
Solve
200
Multi-Level Inheritance ChainA base class `Animal` and a middle class `Pet` are provided. `Pet` extends `Anim...
medium○ Not Started
InheritanceClasses
Solve
188
Build a Generic Queue with Two SlotsComplete the `MiniQueue<T>` class. It has two private fields `first` and `second...
hard○ Not Started
GenericsClasses
Solve
201
Build an Interface-Based Notification SystemCreate two classes, `EmailNotifier` and `SmsNotifier`, that both implement the p...
hard○ Not Started
InterfacesClasses
Solve
202
Abstract Shape Hierarchy with Rectangle and TriangleCreate an abstract class `Shape` with an abstract method `double area()` and a c...
hard○ Not Started
Abstract ClassesInheritance
Solve
203
Payroll System with Abstract and InterfaceBuild a small payroll system. 1. Create an interface `Payable` with a method `d...
hard○ Not Started
Abstract ClassesInterfaces
Solve
204
Stackable Interface with Undo HistoryCreate a class `UndoHistory` that implements the provided `Stackable` interface ...
hard○ Not Started
InterfacesClasses
Solve
205
Zoo Exhibit with Abstract Animals and Feedable InterfaceBuild a small zoo exhibit system. 1. Create an interface `Feedable` with a meth...
hard○ Not Started
Abstract ClassesInterfaces
Solve