Skip to content

Commit bf70142

Browse files
authored
Create libraryservice.java
1 parent c0b4906 commit bf70142

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/libraryservice.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.javabooks;
2+
3+
import java.util.List;
4+
5+
public interface LibraryService {
6+
7+
void addBook(Book book);
8+
9+
void removeBook(String isbn);
10+
11+
List<Book> listBooks();
12+
13+
List<Book> searchByTitle(String title);
14+
15+
List<Book> searchByAuthor(String author);
16+
17+
Book findByIsbn(String isbn);
18+
19+
void borrowBook(String isbn);
20+
21+
void returnBook(String isbn);
22+
}

0 commit comments

Comments
 (0)