*/
import java.util.*;
class Test5
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
Book b1=new Book("红高粱","莫言",14);
Book b2=new Book("碧血剑","金庸",84);
Book b3=new Book("小李飞刀","古龙",64);
Book b4=new Book("楚留香","古龙",32);
Book b5=new Book("Thinking in java","tom",100);
List list=new ArrayList();
list.add(b1);
list.add(b2);
list.add(b3);
list.add(b4);
list.add(b5);
System.out.println("请输入要查找的书名:");
String name=sc.nextLine();
//定义一个要查找的书籍
Book findBook=new Book(name);
Book book=BookTools.findBookByName(findBook,list);