CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
193
Implement a Greetable InterfaceAn interface Greetable is provided with one method: String greet().
easyNot startedSolve
522
Implement an Interface With Two MethodsThe interface Measurable lists two methods and gives neither a body.
easyNot startedSolve
523
Use an Interface as a Parameter TypePerformer is an interface with one method, perform().
easyNot startedSolve
524
Implement Two Interfaces in One ClassA class can extend only one class, but it can implement any number of interfaces: list them after implements with commas between.
easyNot startedSolve
525
Write a Default Method in an InterfaceIn this question the public type of the file is the interface Greeter itself.
easyNot startedSolve
526
Override a Default Method in One ClassAlarm gives ring() a default body that returns Beep.
easyNot startedSolve
527
Read a Constant From an InterfaceA field declared in an interface is a constant: it is public static final even though none of those words are written.
easyNot startedSolve
528
Call a Static Method on an InterfaceSince Java 8 an interface may hold a static method with a body.
easyNot startedSolve
529
Make a Class Comparable by One FieldComparable<Movie> is an interface from the Java library with a single method, compareTo.
easyNot startedSolve
530
Count Ready Items Through an Interface ArrayCheckable is an interface with one method, isReady().
easyNot startedSolve
531
Implement an Interface That Extends AnotherAn interface can extend another interface.
easyNot startedSolve
198
Implement Resizable InterfaceAn interface Resizable is provided with two methods: void resize(double factor) and double getSize().
mediumNot startedSolve
532mediumNot startedSolve
533
Order Contacts With compareTo on Two FieldsContact already says it implements Comparable<Contact>, but the method that interface requires is missing, so the class does not compile yet.
mediumNot startedSolve
534
Sort Products Two Ways With Comparator ClassesA Comparator is a separate object that tells Java how to order two objects of some other class.
mediumNot startedSolve
535
Write an Interface With a Default Method and Its ClassWrite an interface that has both kinds of method, and a class that implements it.
mediumNot startedSolve
536
Delegate to an Interface-Typed FieldPaymentMethod is an interface with one method, charge(double amount), which returns a line of text saying what happened.
mediumNot startedSolve
201
Build an Interface-Based Notification SystemCreate two classes, EmailNotifier and SmsNotifier, that both implement the provided Notifier interface.
hardNot startedSolve
203
Payroll System with Abstract and InterfaceBuild a small payroll system.
hardNot startedSolve
204
Stackable Interface with Undo HistoryCreate a class UndoHistory that implements the provided Stackable interface to track text actions.
hardNot startedSolve
205hardNot startedSolve