title: Getting child values in Firebase
body: <p>I have the following structure</p>
  
  <pre><code>root
    -class1
       -section1
          -student1
              -firstname
              -lastname
          -student2
              -firstname
              -lastname
       -section2
          -student1
              -firstname
              -lastname
          -student2
              -firstname
              -lastname
  </code></pre>
  
  <p>I need to get the section number <strong>(Section1, section2...)</strong> and for every section, the lastname for student2. <br/>
  The problem that i facing is that it is all in a Fragment class in android that I need to display and nothing seems to be working. I have referred <a href="https://stackoverflow.com/questions/43293935/how-to-get-child-of-child-value-from-firebase-in-android">this</a> for getting the children too, but the for loop somehow does not work and I get <strong>Null</strong> values on retrieval. </p>
  
  <p>I need to get</p>
  
  <pre><code>section1, lastname (of student2 in section1)
  section2, lastname (of student2 in section2)
  ...
  and so on until all sections are exhausted
  </code></pre>