Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Deezer API を使用して、ユーザーのお気に入りのアーティストをリクエストします。
アーティストのすべてのデータを入力しArrayListて使用するだけです。Collections.sort(artistList); これは機能します。これは、のアイテムartistListが文字列であり、文字列が Comparable を実装しているためです。
ArrayList
Collections.sort(artistList);
artistList
私は deezer API を知りませんが、結果を ArrayList のオブジェクトとして解析してから、名前属性で並べ替えてみませんか?