.*;.*;lassT{publicstaticvoidmain(String[]args)throwsException{Connectionconn=null;Statementstmt=null;ResultSetrs=null;while(true){Scannerscanner=newScanner();("请输入用户名:");Stringusername2=();("请输入密码:");Stringpassword2=();if(!(("")||(""))){try{("");conn=("jdbc:odbc:book","","");Stringsql="select*from='"+username2+"'";stmt=();rs=(sql);if(()){if(("password").equals(password2)){("*********欢迎来山东科技大学图书馆管理系统********");while(true){("");("");("");("");("");("");//("");("请输入选择功能的序号:");inta=();switch(a){ case1: ("图书信息:"); (":"); (":"); (":"); (":"); inta1=();switch(a1){ case1: ("欢迎进入图书信息查询系统:"); (":"); (":"); intd=();switch(d){ case1: intllll=0;//intmm=0;while(llll!=1){ (":"); StringSql0="SELECT*FROMsystembook"; rs=(Sql0); while(()){StringbookID=(1);StringbookNo=(2);StringbookName=(3);StringbookWriter=(4);StringbookPub=(5);(bookID+","+bookNo+","+bookName+","+bookWriter+","+bookPub);}("是否继续插入?yes/nono返回主菜单"); Stringk=(); if(("yes")) { ();}; if(("no")) { llll=1; (); }; }break;//break;case2:(":");("
用java做的一个图书管理系统的源代码 来自淘豆网m.daumloan.com转载请标明出处.