package RentBook;
import java.util.Scanner;
import org.omg.CORBA.ExceptionList;
public class Initial {
public static void main(String[] args) {
// TODO Auto-generated method stub
Book book[] = {new Book("算法导论",1),new Book("大学英语",2),new Book("java圣经",3),new Book("白银时代",4),new Book("伊豆舞女",5)};
System.out.println("现在的书有 :");
for (Book book2 : book) {
System.out.println(book2.toString());
}
while(true){
System.out.println("书名查找请按1;序号查找请按2");
Scanner console = new Scanner(System.in);
try{
int t = console.nextInt();
if(t == 1){
console = new Scanner(System.in);
String chooseName = console.next();
for(int i = 0; i
if(chooseName.equals