【发布时间】:2021-07-30 12:21:03
【问题描述】:
我有类库
public class Books extends Library {
String regNumber
String author;
String name;
int yearOfPublishing;
String publishingHouse;
int numberOfPages;
public Books(String regNumber, String author, String name, int yearOfPublishing,
String publishingHouse, int numberOfPages) {
this.regNumber = regNumber;
this.author = author;
this.name = name;
this.yearOfPublishing = yearOfPublishing;
this.publishingHouse = publishingHouse;
this.numberOfPages = numberOfPages;
}
如何按字母顺序列出作者姓氏的书籍?
【问题讨论】:
标签: java arrays sorting object alphabetical