title: How to get particular value using `DataSnapshot` in `Firebase`
body: <p>I want to get particular value using from <code>DataSnapshot</code>.<br>
  I am attaching the screenshot here so kindly check and help me to get particular value from <code>Realtime Database</code>.<br>
  <a href="https://i.stack.imgur.com/B0FAZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B0FAZ.png" alt="enter image description here"></a></p>
  
  <p>Actually I am implementing <code>chat</code> application in which I want to get value of <code>user</code> from <code>group_list</code>.
  Here is my code.</p>
  
  <pre><code>    private void loadTotalGroupList() {
  
          referenceMainUrl = FirebaseDatabase.getInstance().getReferenceFromUrl("https://pure-coda-174710.firebaseio.com");
          referenceGroupList = referenceMainUrl.child("group_list");
  
          //Check if child is available or not.
          referenceGroupList.addValueEventListener(new ValueEventListener() {
              @Override
              public void onDataChange(DataSnapshot dataSnapshot) {
                  if (dataSnapshot.exists()) {
  
  
                      Log.e("dataSnapshot","  ==&gt;"+dataSnapshot);
                      Map&lt;String, Object&gt; newPost = (Map&lt;String, Object&gt;) dataSnapshot.getValue();
  
                      Log.e("newPost","  ==&gt;"+newPost);
  
                     Log.e("user: ","==&gt;" + newPost.get("user"));  // Here I am getting null value
  
  
                  } else {
                      Log.e("Child not found", " &gt;&gt;&gt;");
                  }
              }
  
              @Override
              public void onCancelled(DatabaseError databaseError) {
              }
          });
      }  
  </code></pre>
  
  <p>and <code>log</code> showing like this. <strong><em>DataSnapshot { key = group_list, value = {First Group={-KtBH9gnTszNxcXjNu9A={message=assaasas, user=sakib}}} }</em></strong></p>