ニュース

Sometimes we want to sort a List based on some property. Suppose we have a List of UserModel and we want to sort List by firstName then we can do that easily by using Collections.sort() and Comparator ...
最近、相変わらずAndroid Studio(Java)を触っていますが、インスタンスを格納するArrayListの動きを勘違いしていたのでログを残します。 こんな形で、指定した<型>の配列を作ります。型にはクラスが入るので、intとかはラッパークラスのIntegerで指定する必要が ...