title: How to compare the Firebase retrieved value with a string?
body: <p>Is there a way I can store the value retrieved from the Firebase to be stored in a String Variable?
  Here is my code retrieving the Value of "rface":</p>
  
  <pre><code>ref.addListenerForSingleValueEvent(new com.google.firebase.database.ValueEventListener() {
                  @Override
                  public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) {
                      rface = dataSnapshot.child("face").getValue(String.class);
                  }
  
                  @Override
                  public void onCancelled(DatabaseError databaseError) {
                  }
              });
  </code></pre>
  
  <p>And I want to implement and if condition:</p>
  
  <pre><code>if (rface=="0") {
      do this
  }
  </code></pre>
  
  <p>The rface contains a string value in my Firebase Database.<br>
  When I try to use this If condition Android Studio says: </p>
  
  <blockquote>
    <p>Operator "==" can not be applied to 'java.util.Objects','java.lang.String' </p>
  </blockquote>