- Java 9 Programming By Example
- Peter Verhas
- 67字
- 2021-07-02 23:37:37
Creating the interfaces
The interface in our case is very simple.
package packt.java9.by.example.ch03;
public interface Sort {
void sort(SortableCollection collection);
}
The interface should do only one thing—sort something that is sortable. As we wanted to be very general in this approach, we also have to define what sortable is. To do so, we will need another interface.
package packt.java9.by.example.ch03;
public interface SortableCollection {
}
推薦閱讀
- 從零開始:數(shù)字圖像處理的編程基礎與應用
- Java EE 6 企業(yè)級應用開發(fā)教程
- Vue.js 3.x從入門到精通(視頻教學版)
- Java從入門到精通(第5版)
- 基于免疫進化的算法及應用研究
- PHP網(wǎng)絡編程學習筆記
- 編寫高質量代碼:改善C程序代碼的125個建議
- C語言程序設計
- Data Analysis with Stata
- Learning ELK Stack
- 快速念咒:MySQL入門指南與進階實戰(zhàn)
- Go并發(fā)編程實戰(zhàn)
- Teaching with Google Classroom
- Yii Project Blueprints
- Webpack實戰(zhàn):入門、進階與調優(yōu)