首页 > IT职业 > IT生活 > Library System Design
com.imoocBooks {
String (numString name){
.= num.= name}
}
com.imoocjava.util.ScannerLibrarySystem {
Books[] = Books[](String[] args) Exception {
LibrarySystem system = LibrarySystem()system.start()}
() Exception {
fillbooksArray()UserInput01()}
(Books[] books) {
books[] = Books()books[] = Books()books[] = Books()books[] = Books()books[] = Books()books[] = Books()books[] = Books()books[] = Books()books[] = Books()books[] = Books()}
() Exception {
{
System..println()Scanner scan = Scanner(System.)Input = scan.nextInt()(Input==){
InputName()}(Input==){
InputIndex()}{
System..println()UserInput01()}
} (Exception e) {
System..println()UserInput01()}
}
() Exception {
{
System..println()Scanner scan = Scanner(System.)String Input01 = scan.next()isMatch = (i = i
运行效果

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2551/viewspace-2799860/ ,如需转载,请注明出处,否则将追究法律责任。