i have a noticeboard activity to show to the notice. Now i want to print last notice at first position. Means in reverse order.
if (dataSnapshot.getValue() != null) {
Iterable<DataSnapshot> snapshotIterator = dataSnapshot.getChildren();
Iterator<DataSnapshot> iterator = snapshotIterator.iterator();
while (iterator.hasNext()) {
//notificationCount++;
DataSnapshot snapshot = iterator.next();