I am getting invalid string like android.support.v7.widget.AppCompatEditText while getting edittext value
<p>Here is my java fragment code</p>

<pre><code>    public class A_AssignExam extends android.support.v4.app.Fragment {
        EditText username;

        @Override
        public void onActivityCreated(Bundle savedInstanceState) {
            super.onActivityCreated(savedInstanceState);
            username=(EditText)view.findViewById(R.id.usernameeditassignexam);
            Log.d("Username------&gt;", ""+username);
    }
</code></pre>

<p>I get the following error message</p>

<pre><code>android.support.v7.widget.AppCompatEditText {52750c5c VFED..CL ......I. 0,0-0,0 #7f0d00d8 app:id/usernameeditassignexam}
org.veetech.veeknowintern D/Username------&gt;: android.support.v7.widget.AppCompatEditText {52750c5c VFED..CL ......I. 0,0-0,0 #7f0d00d8 app:id/usernameeditassignexam}
org.veetech.veeknowintern D/Username------&gt;: android.support.v7.widget.AppCompatEditText {52750c5c VFED..CL .F. ..... 152,0-572,90 #7f0d00d8 app:id/usernameeditassignexam}      
</code></pre>