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人點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優質文章
正在加載中
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
