Archives: List

Android Realm – Convert RealmResults to List

Convert RealmResults to Java ArrayList – Android Realm Database Example



Java – List Iterate Example



Java – Rotate Elements of List

Following example uses rotate() method to rotate elements of the list depending on the 2nd argument of the method.

Output:

List :[one, Two, three, Four, five, six]
rotate: [Four, five, six, one, Two, three]