use of com.google.example.library.v1.Book in project java_1_wednesday_2022 by AlexJavaGuru.
the class FindByIdUIAction method execute.
public void execute() {
Scanner scanner = new Scanner(System.in);
System.out.println("Book's ID: ");
Long booksId = scanner.nextLong();
Optional<Book> bookOptional = bookDatabase.findById(booksId);
System.out.println(bookOptional);
}
Aggregations