Tushu2 Tushu2[] ={ new Tushu("数学"), new Tushu("语文"), new Tushu("英语"), new Tushu("论语"), new Tushu("日语"), new Tushu("Java"), new Tushu("喵语言") }; String q = input.next(); for(int i=0;i<Tushu2.length;i++){ if (Tushu2[i].equals(q)) { System.out.println("book: " +Tushu2[i]); } } System.out.println("图书不存在");
四无小青年
相关分类