title: How to show Realm Data base results to an edit text?
body: <p>so I'm new to realm data base and I'm trying to show the data that the user wrote throw an Edit text and show it in a Textview..</p>
  
  <p><strong>My realm class</strong></p>
  
  <pre><code>     import io.realm.RealmObject
      import io.realm.annotations.PrimaryKey
      import io.realm.annotations.RealmClass
  
  @RealmClass
  
  open class GoodStudents : RealmObject(){
      @PrimaryKey
      var id: Long = 0
      var name : String? = null
      var grade : Int? = null
  
  
  }
  </code></pre>
  
  <p><strong>Main activity code</strong></p>
  
  <pre><code>Realm.init(this)
      val convig = RealmConfiguration.Builder()
          .name("GoodStudents").build()
      val realm = Realm.getInstance(convig)
      realm.beginTransaction()
  
      count = realm.where(GoodStudents::class.java).findAll().size
  
      val goodStudents = realm.createObject(GoodStudents::class.java, count+1)
      goodStudents.name = name.text.toString()
      goodStudents.grade
      realm.commitTransaction()
  
  
          val readData = realm.where(GoodStudents::class.java).findAll()
  
      saveButton.setOnClickListener {
          Toast.makeText(this,"Data is saved", Toast.LENGTH_LONG).show()
          var text = text.text
          readData.forEach { save -&gt;
             save.name = text as String?
  
  
          }
  
      }
  </code></pre>
  
  <p>P.C. Java code is acceptable..</p>