title: Iterator.next is not working
body: <p>im tring to get all value for all children from firebase database but when i run this code below i only get the first child value multi times.</p>
  
  <pre><code>  names=new ArrayList&lt;&gt;();
          rootRef.addValueEventListener(new ValueEventListener() {
              @Override
              public void onDataChange(DataSnapshot dataSnapshot) {
  
                  for (DataSnapshot dataSnapshot1:dataSnapshot.getChildren()) {
                      i = i + 1;
                      names.add(dataSnapshot.getChildren().iterator().next().getValue(String.class));
                  }
                  Toast.makeText(signup.this,""+names,Toast.LENGTH_LONG).show();
  
              }
  
              @Override
              public void onCancelled(DatabaseError databaseError) {
  
              }
          });
  </code></pre>
  
  <p>can i cange the Iterator to a list?
      i want the simplest way to do it</p>