dvdlibraryinterface.java
来自「在sun实训时写的」· Java 代码 · 共 38 行
JAVA
38 行
/* * DVDLibraryInterface.java * * */package com.dvd.model;import java.util.List;/** * * @author */public interface DVDLibraryInterface { // Return a read-only reference the Collection of DVDs in the library public List getDVDCollection(); // Given a title, a year and a genre, // 1.) create a new DVD item, // 2.) add the new item to the library // 3.) return a reference to the new DVD item public DVDItem addDVD(String title, String year, String genre); // Return a read-only reference // a List of genres currently recognized by the library public List getGenres(); // Given the name of a genre, // check if that genre is present in the current genre list, // if not present add the new genre to the list public void addGenre(String new_genre); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?