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 < .i++) {
(Input01.equals([i].)){
System..println(+ [i].+ + [i].)isMatch = }
}
(isMatch == ){
System..println()InputName()}
} (Exception e) {
System..println()InputName()}
}
() Exception {
{
System..println()Scanner scan = Scanner(System.)Input02 = scan.nextInt()isMatch = (i = i < .i++) {
(Input02 == [i].){
System..println(+ [i].+ + [i].)isMatch = }
}
(isMatch == ){
System..println()InputIndex()}
} (Exception e) {
System..println()InputIndex()}
}
}运行效果
点击查看更多内容
1人点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
