while(true){ System.out.println("輸入命令:1-按照名稱查找圖書;2-按照序號查找圖書"); String book; try{ int command=intputCommand(); switch(command) { case 1: book=getbookbyname(books);//getbookbyname是什么?方法 詞組 System.out.println("book:"+book); break;
while(true) ? ?try ? 什么語法啊,哪里有 true ?or false ??
2015-01-27
while(表達式)中的條件表達式類型必須為boolean型,try-catch是捕獲異常前面有講啊