阅读背景:

如何对不同类类型的对象数组进行排序?

来源:互联网 

I am trying to develop a program that can sort an array of objects that are of different class types, but in the same hierarchy as one another. All of the objects are listed within the same array that I am trying to sort, and while I can alphabetically sort an array of objects that are of the same type easily enough, I cannot figure out how to sort everything all at once with the same Arrays.sort() method. Any help that anyone could provide would be greatly appreciated.I am trying to develop a program that can sort




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: