title: Not Getting Complete Data from Firebase
body: <p>I have created some users and their children in Firebase Database and I also have populated it but when I am reading from the database, it gives me incomplete data. I have a 
  database > ExpenseManager > user > expenses. I am retrieving data from expenses. expenses contains 3 duplicate values continuously, I have total 10 entries but when I am retrieving I get only 9 entries. One of the Three duplicate values is missing. I am using for each loop inside childEventListener > onChildAdded().</p>
  
  <pre><code> database = FirebaseDatabase.getInstance();
      DatabaseReference myRef = database.getReference("ExpenseManager");
  
      mChildEventListener = new ChildEventListener() {
          @Override
          public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
  
              for(DataSnapshot dataSnapshots : dataSnapshot.getChildren()){
  
                  expenseTestModelValues = (ExpenseTestModel) dataSnapshot.getValue(ExpenseTestModel.class);
                  readValue.setText(expenseTestModelValues.getExpName()
                          +"\n "+expenseTestModelValues.getExpType()
                          +"\n "+expenseTestModelValues.getExpAmt()
                          +"\n "+expenseTestModelValues.getDate()
                          +"\n "+expenseTestModelValues.getMonth()
                          +"\n "+expenseTestModelValues.getYear());
  
              }
  
  
              Log.e(TAG,expenseTestModelValues.getExpName()
                      +"\n "+expenseTestModelValues.getExpType()
                      +"\n "+expenseTestModelValues.getExpAmt()
                      +"\n "+expenseTestModelValues.getDate()
                      +"\n "+expenseTestModelValues.getMonth()
                      +"\n "+expenseTestModelValues.getYear());
  
          }
  
          @Override
          public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
  
          }
  
          @Override
          public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {
  
          }
  
          @Override
          public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
  
          }
  
          @Override
          public void onCancelled(@NonNull DatabaseError databaseError) {
  
          }
      };
      myRef.child(currentUser.getUid()).child("expenses").addChildEventListener(mChildEventListener);
  </code></pre>
  
  <p>Here is the Image of Data base
  <a href="https://i.stack.imgur.com/Y0Okf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y0Okf.png" alt="Databse Image."></a></p>
  
  <p>The log is also printing only 9 entries instead of 10.
  And if I have all the entries same then it gives me only 2 entries when I read from database.
  I have tried ValueEventListener also. But getting same problem. 
  Please Help !!!.</p>
  
  <p>ExpenseTestModel</p>
  
  <pre><code>package com.nkbw.expensemanager.test;
  </code></pre>
  
  <p>public class ExpenseTestModel {</p>
  
  <pre><code>String date;
  String month;
  String year;
  String expName;
  String expType;
  
  public ExpenseTestModel() {
  
  }
  
  public ExpenseTestModel(String date, String month, String year, String expName, String expType, String expAmt) {
      this.date = date;
      this.month = month;
      this.year = year;
      this.expName = expName;
      this.expType = expType;
      this.expAmt = expAmt;
  }
  
  public String getDate() {
      return date;
  }
  
  public void setDate(String date) {
      this.date = date;
  }
  
  public String getMonth() {
      return month;
  }
  
  public void setMonth(String month) {
      this.month = month;
  }
  
  public String getYear() {
      return year;
  }
  
  public void setYear(String year) {
      this.year = year;
  }
  
  public String getExpName() {
      return expName;
  }
  
  public void setExpName(String expName) {
      this.expName = expName;
  }
  
  public String getExpType() {
      return expType;
  }
  
  public void setExpType(String expType) {
      this.expType = expType;
  }
  
  public String getExpAmt() {
      return expAmt;
  }
  
  public void setExpAmt(String expAmt) {
      this.expAmt = expAmt;
  }
  
  String expAmt;
  </code></pre>
  
  <p>}</p>
  
  <p>Here is the Image of Last Three entries. Last Second and last third is having same values. so I am only getting One of the Last Second and third Entries not both.
  I have total 10 entries and I getting only 9. Why is that so.
  <a href="https://i.stack.imgur.com/PngD4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PngD4.png" alt="Here the image of database with values"></a></p>